Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
on_off
#python 2.7.12 def onoff(n): if n % 3 == 0 and n % 5 == 0: return 'OnOff' elif n % 3 == 0: return 'On' elif n % 5 == 0: return 'Off' else: return str(n) print "\n".join(onoff(n) for n in xrange(1, 100))
run
|
edit
|
history
|
help
0
espacio_blanco
Problem: Binary
fibonacci_2
python2 - division -1
Reed Solomon error correction
on_off_3
PyNameMangling
PyPropertyDecorator
Mounesh
PyClassMethod