• Home
  • Which is invalid in python for z = 5 ?
Question 1:
Which is invalid in python for z = 5 ?
A. z = z++
Feedback z = z++ is not valid in python, it is not a legal expression. It results in syntax error
B. z = ++z
C. z += 1
D. z -= 1

These questions are from this test. Would you like to take a practice test?

Python Quiz 4 | Englishfreetest.com