Below is my code:
def ercheck (var):
nums = [1,2,3,4,5,6,7,8,9,0]
error = False
for num in nums:
if str(num) not in (var):
error = True
for char in str(var):
if char not in (var):
error = True
if error == True:
print("Invalid argument(s), Try again.")
quit()
It always gives me an error message, that I coded in. After some testing, it seems like my for loop num in nums: if str(num) not in (var): error = True is the problem.