222k views
2 votes
Help

Which of these lines of code will increment a variable?


A.

print(variable)


B.

count(variable)


C.

inc(variable)


D.

variable = variable + 1

User Joooeey
by
5.8k points

1 Answer

10 votes
the answer is A :) hope it’s right have a nice day
User OscarLeif
by
5.0k points