Skip to content

Instantly share code, notes, and snippets.

@artizirk
Last active December 17, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artizirk/5656042 to your computer and use it in GitHub Desktop.
Save artizirk/5656042 to your computer and use it in GitHub Desktop.
not interesting
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import print_function
num = raw_input("enter positive even number: ")
num = int(num)
result = 2
for i in xrange(4, num+2, 2): # xrange(start, stop, step) or "for (i=2, i<=num, i+=2) {}"
result *= i
print("result:", result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment