Pablo Galindo Salgado <[email protected]> added the comment:
You can already do:
my_counter = 0
for i in rage(1000):
my_counter += (1 if (i % 2) == 0 else 0)
----------
nosy: +pablogsal
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41935>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com