0

Python Generators

silly question, but I have a hard time deciphering what this means, may I get some help please? i -= 1

5th Mar 2018, 10:33 PM
Adaobi
3 Respostas
+ 7
It is equivalent to: i = i - 1
5th Mar 2018, 10:35 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Ughhh!! You guys are the best! Thank you
6th Mar 2018, 3:11 AM
Adaobi
0
To get it I used to read it while writing it as follows: i .. saying i - .. saying is reduced = .. saying by 1 .. saying one so i-=1 is "i is reduced by 1" if you want to increase by 2 for example: "I is increased by 2" i + = 2
6th Mar 2018, 11:30 AM
ĂĦmĕđ MägÐý
ĂĦmĕđ MägÐý - avatar