this is my first question on the side as a beginner who is trying to learn how to code.
Here the issue (Python):
x = 50000
count = 0
number = x
while x > 1:
x = x/10
count = count+1
print(x)
If I print x I get 0.5, as expected. However if i print number I get 50000, instead of 0.5. Why is that the case, considering that I´ve initialised the number variable with the x variable, that now has the updated value of 0.5 after having iterated through the loop?