Which of the following is not correct?a=a+1a+=1a=+1a++
Question
Which of the following is not correct?a=a+1a+=1a=+1a++
Solution
The statement that is not correct is "a++". This is because in Python, incrementing a variable by 1 is not supported by the "++" operator. Instead, you should use "a += 1" or "a = a + 1".
Similar Questions
Which of the following is not correct?a=a+1a+=1a=+1a++
Which of the following is not equal to set A?
Which of the following is invalid?_a = 1__str__ = 1none of the mentioned__a = 1
If ab = 1, where a and b are real numbers then? a = b-1 b = a a = b = 2 none of the mentioned
If i2 = -1 and if a is a positive integer, which of the following must be equal to ia ?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.