I'm trying to change a string into an integer,
What I'm trying to do it something like this:
A = 3 #So A is an integer of 3
B = raw_input(">")
> A # So now B is a string of A
int(B) #This gives a error that I don't really understand. :S
print B # With out the int(B) will print A, but I want it to print 3
Any help on how to fix the int function so it'll do that?
What I'm trying to do it something like this:
A = 3 #So A is an integer of 3
B = raw_input(">")
> A # So now B is a string of A
int(B) #This gives a error that I don't really understand. :S
print B # With out the int(B) will print A, but I want it to print 3
Any help on how to fix the int function so it'll do that?
Comment