Coding Python: How can one let two variables equate eachother?
This is a sample code that shows the problem:
a = 1
b = 0
b = a
print b
I want b to be 1 now :( but it is still 0
Any ideas on how i can do this?
I am actually writing another program where this is quite a bit of a problem.
I've tried using double equation marks, making no change unfortunately.
Does anyone know a proper way to just let two variables equate eachtother?
Thanks in advance!
No comments:
Post a Comment