+ 1

When to use in place operators?

When would I create a code like this >>> x=3 >>> x+=4 >>> print(x) 7 When I could just do it like this >>> x=3 >>> x+4 7

4th Apr 2017, 8:19 PM
Ken Dragon
Ken Dragon - avatar
1 Antwort
+ 7
When you will need x to be incremented ,but you don't wanna print it out.
4th Apr 2017, 8:35 PM
Meharban Singh
Meharban Singh - avatar