Python - Operators and Expression Evaluation
Which of the following is the correct syntax to add 5 to variable x using augmented assignment?
x = 10
# Add 5 to x here
Which of the following is the correct syntax to add 5 to variable x using augmented assignment?
x = 10
# Add 5 to x here
x += 5.x =+ 5 and x =+5 use incorrect operator placement; x = x + is incomplete.+= for adding and assigning [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions