Python 7 Programming Tutorial

2016-08-29  本文已影响0人  豆表示低调
age = 27

if age < 21:
    print("No beer for you!")


name = "Tommy D"

if name is "Bucky":
    print("Hey there Bucky")
elif name is "Lucy":
    print("What up Lucedawg?")
elif name is "Sammy":
    print("What up Slammy?")
else:
    print("Please sign up for the site!")
上一篇 下一篇

猜你喜欢

热点阅读