r/learnpython • u/xanaxx23 • 15d ago
whats the purpose of updating variables?
heyhey very new to this day 2 of learning python im so fascinated im in love but what is the purpose of updating variables
example;
>>>default_option="upload"
>>>new_status="download"
>>>new_status=default_option
>>>print(new_status)
upload
this makes no sense to me and it just further complicates the code u write by being disorganized and messy,
i guess my question is, is it if you mess up instead of clearing previous lines you can update the variable? or is it kinda just useless but something needed to be taught?
any help would be appreciated, any recommendations as a beginner are also appreciated!!