ARTICLE AD BOX
Is there a better way to do this, my example uses 3 variables but id like to use around 30 and don't want to have 30 different if statements. sorry if my code is wrong.
variable_1 = () variable_2 = () variable_3 = () change = int(input("select a variable to change")) if change = 1 : variable_1 = input(" change variable 1 to :") elif change = 2 : variable_2 = input(" change variable 2 to :") elif change = 3 : variable_3 = input(" change variable 3 to :")