I know there are things to avoid repetition, like:
# Long way
num = num + 10
# Short way
num += 10
But when talking about string methods for example. Is there a short way to avoid that?
myString = myString.upper()
I know there are things to avoid repetition, like:
# Long way
num = num + 10
# Short way
num += 10
But when talking about string methods for example. Is there a short way to avoid that?
myString = myString.upper()