McBadass

Exercise 3, Python 3.2

May 25th, 2011
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. print("I will now count my chickens:")
  2.  
  3. print("Hens", 25 + 30 / 6)
  4. print("Roosters", 100 - 25 * 3 % 4)
  5.  
  6. print("Now I will count the eggs:")
  7.  
  8. print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
  9.  
  10. print("Is it true that 3 + 2 < 5 - 7?")
  11.  
  12. print(3 + 2 < 5 - 7)
  13.  
  14. print("What is 3 + 2?", 3 + 2)
  15. print("What is 5 - 7?", 5 - 7)
  16.  
  17. print("Oh, that's why it's False.")
  18.  
  19. print("How about some more.")
  20.  
  21. print("Is it greater?", 5 > -2)
  22.  
  23. print("Is it greater or equal?", 5 >= -2)
  24. print("Is it less or equal?", 5 <= -2)
Advertisement
Add Comment
Please, Sign In to add comment