Python 10 Programming Tutorial -

2016-08-30  本文已影响0人  豆表示低调
magicNumber = 26

for n in range(101):
    if n is magicNumber:
        print(n, " is the magic number!")
        break
    else:
        print(n)

'''
*** Challenge 1 ***
Create a program that lists all the numbers between 1-100 that are divisible by four.
Good luck!
'''
上一篇 下一篇

猜你喜欢

热点阅读