Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Content-Type: multipart/mixed; boundary="===============0993946789=="
- MIME-Version: 1.0
- From: landimatte@gmail.com
- To: 1051962371@facebook.com
- Cc: landimatte@gmail.com
- Subject: hoppity
- Content-Disposition: attachment; filename="hoppity"
- --===============0993946789==
- Content-Type: text/plain; charset="us-ascii"
- MIME-Version: 1.0
- Content-Transfer-Encoding: 7bit
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- import sys
- def main():
- (c3, c5) = (1, 1)
- for n in xrange(1, int(sys.argv[1]) + 1):
- if c3 == 0 and c5 == 0:
- print 'Hop'
- elif c3 == 0:
- print 'Hoppity'
- elif c5 == 0:
- print 'Hophop'
- c3 = (c3 + 1) % 3
- c5 = (c5 + 1) % 5
- if __name__ == '__main__':
- main()
- --===============0993946789==--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement