Saturday, October 1, 2016

[Basic Concept] In-Place Operators

>>> x = 2
>>> x +=3
5

can be also use in string


>>> x = "Apple"
>>>x += "Pine"
ApplePine


Python doesn't have x++ , only have x +=1

No comments:

Post a Comment