Toggle navigation
English
Chinese
Python Sandbox
Please refer to
this tutorial
to find more details on the following codes.
# # This division prints 0, because Python converts the result into integer # x=2 y=5 print(x/y) # # You get decimal number as output for the following code. # x=2.0 y=5.0 print(x/y) # # You get decimal number as output for the following code. # x=2 y=5 print(float(x)/float(y))
Run
List