Python No 7's

for i in range(100):

    if ('7' in str(i)) or (i % 7 == 0):

        print(i)


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )