Skip to content

Instantly share code, notes, and snippets.

@arruda
Created December 5, 2012 15:22
Show Gist options
  • Save arruda/4216491 to your computer and use it in GitHub Desktop.
Save arruda/4216491 to your computer and use it in GitHub Desktop.
Desafio Ping Pong
#!/usr/bin/python
NUM_MAXIMO = 100
for i in xrange(1,NUM_MAXIMO+1):
if not i % 3 is 0 and not i % 5 is 0:
print i
else:
if i % 3 is 0:
print "ping"
if i % 5 is 0:
print "pong"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment