Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def lights(): print ["".join(["-" if (len(set(x for x in range(1,buttonNo + 1) if lightNo%x == 0))%2 == 0) else "*" for lightNo in range(1,51)]) for buttonNo in range(1,51)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement