Toggle navigation
English
Chinese
Python Sandbox
# # 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