DEV Community

Ega Prasetya
Ega Prasetya

Posted on

2 1

Python Tricks - Functions to change Data Type

  1. int () to convert to integer;
  2. long () to change to an integer length;
  3. float () to change to float;
  4. bool () to change to boolean;
  5. chr () to change to character;
  6. str () to convert to a string.
  7. bin () to convert to Binary numbers.
  8. hex () to convert to Hexadecimal numbers.
  9. oct () to convert to octane numbers.

Thanks for read my docs, hope enjoy it.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️