How do I get this to work?
n = 1234
f = open("file", "r")
while True:
x=f.readline()
print "*********************"
print n%(long(x))
if n%(long(x))==0:
print x
else:
print "..."
I'm a noob in python and I'm getting an error I don't understand. What am I doing wrong?
ValueError: invalid literal for long() with base 10: ''