DEV Community 👩‍💻👨‍💻

Ega Prasetya
Ega Prasetya

Posted on

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)

Hacktoberfest is happening now!


It is a month-long celebration of open source. For a lot of devs, its their introduction to open source.



Check out the Hacktoberfest tag on DEV to keep up with the latest!