Skip to content

Instantly share code, notes, and snippets.

@hronecviktor
Created September 30, 2013 13:01
Show Gist options
  • Save hronecviktor/6763485 to your computer and use it in GitHub Desktop.
Save hronecviktor/6763485 to your computer and use it in GitHub Desktop.
tteeeet
import random
import sys
__author__ = 'zamr666'
def isInteger(*inp):
lst=[]
for val in inp:
try:
a=int(val)
lst.append(True)
except ValueError as e:
lst.append(False)
return lst
print(isInteger('a','b',3,4))
print(random.choice(isInteger('a','b',3,4)))
print(sys.argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment