Miscellanea

Asterisco

Vedi: https://medium.com/understand-the-python/understanding-the-asterisk-of-python-8b9daaa4a558

print(*[x*x for x in range(5)])                       # 0 1 4 9 16
a=b=c=d=5                        ; print(*[a,b,c,d])  # 5 5 5 5
(a,b,*c,d)=[1,2,3,4,5]           ; print(c)           # [3, 4]
(*a,b,c,d)=[1,2,3,4,5]           ; print(c)           # 4

iter

it=iter("arcobaleno")
it=iter(["a", "r", "c"])
...

divmod

print(divmod(13,5))  # (2, 3)

exec / eval

yield

os.system / os.exit(0)