Code Snippets

30 seconds of code provides a curated collection of short code snippets for all your development needs. Our collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.

  • Radians to degrees

    Python, Math

    Converts an angle from radians to degrees.

  • Number to binary

    Python, Math

    Returns the binary representation of the given number.

  • Number to hex

    Python, Math

    Returns the hexadecimal representation of the given number.