New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to assign a value to the input value one
For example Salary=input() While something: Salary=input <-I want this object assign to the input value outside the loop While something: Salary value has changed Testing with Salary
1 Answer
0
Now I find the answer.
I assign y=input('annual salary') in the first line to prevent the same variable(annual salary) which cause error in while loop.
Anyway, thank you for your answer :D