Skip to content

Instantly share code, notes, and snippets.

View nchlswtsn's full-sized avatar

Charles Watson nchlswtsn

  • Cardinal Solutions Group
  • USA
View GitHub Profile
@nchlswtsn
nchlswtsn / fizzbuzz.py
Created March 18, 2015 17:16
FizzBuzz
import sys
length = len(sys.argv)
script = sys.argv[0]
if len(sys.argv) == 1:
print "You supplied %d arguments at run time exclusively consisting of %s" % (length, script)
user_n = int(raw_input("Please enter a max limit: "))
else:
user_n = int(sys.argv[1])
print "You supplied {} arguments at run time".format(len(sys.argv))