Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python

1
2
3
a = 10 #it is an integer
print(float(a)) #10.0 #it got converted to float datatype
print(str(a)) #"10" #now into a string
Source by python-hub.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
4+9 =