DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
casting in python
x = "3" int(x) y = "2.6" float(y) z = "1j" complex(z) print(typeof(x)) # Int # float # complex
Source by codefreelance.net #
PREVIOUS
NEXT
Tagged:
#casting
#python
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit