美文网首页
Python 10 Programming Tutorial -

Python 10 Programming Tutorial -

作者: 豆表示低调 | 来源:发表于2016-08-30 14:35 被阅读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!
'''

相关文章

网友评论

      本文标题:Python 10 Programming Tutorial -

      本文链接:https://www.haomeiwen.com/subject/lhaxettx.html