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")

 

转载于:https://www.cnblogs.com/jiangzhipeng/p/6093693.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值