Python - Operators and Expression Evaluation
Which of the following is the correct syntax for subtracting 2 from variable y using augmented assignment?
Which of the following is the correct syntax for subtracting 2 from variable y using augmented assignment?
-= subtracts a value from the variable and assigns the result back.y -= 2, which is the correct augmented assignment syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions