ex29.py

 1 people = 20
 2 cats = 30
 3 dogs = 15
 4 
 5 if people < cats:
 6     print ("TOO many cats! The world is doomed!")
 7     
 8 if people > cats:
 9     print ("Not many cats! The world is saved!")
10 
11 if people < dogs:
12     print ("The world is drooled on!")
13 
14 if people > dogs:
15     print ("The world is dry!")
16 
17 
18 dogs += 5
19 
20 if people >= dogs:
21     print ("people are greater than or equal to dogs.")
22     
23 if people <= dogs:
24     print ("people are less than or equal to dogs")
25     
26 if people == dogs :
27     print ("people are dogs")
28     
29 
30 if 1 == 0:
31     print ("FALSE")
32 if 1 != 0:
33     print("TURE")

 

posted @ 2016-11-23 15:02  听风呤  阅读(162)  评论(0编辑  收藏  举报