fork download
  1. # integers are values that represent whole numbers
  2.  
  3. one = 1
  4. two = 2
  5. three = 4
  6. negative = -15
  7. eight = 15
  8.  
  9. fourteen = 245
  10.  
  11. out = eight + fourteen
  12. print(out)
  13.  
  14. out2 = negative + fourteen
  15. print(out2)
  16.  
  17. #floats are values that represent decimal numbers
  18. pi = 3.14
  19. hi = .01134
  20. onehalf = .5
  21. aSmallNum = .000000000000005
  22.  
  23. out3 = onehalf + hi
  24. print(out3)
  25. print(aSmallNum)
  26.  
Success #stdin #stdout 0.11s 14072KB
stdin
1
2
10
42
11
stdout
260
230
0.51134
5e-15