Advertisement
DanielKoehler

Untitled

Nov 11th, 2013
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. 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