Asterisco
Vedi: https://medium.com/understand-the-python/understanding-the-asterisk-of-python-8b9daaa4a558
1 2 3 4 |
print(*[x*x for x in range(5)]) # 0 1 4 9 16 a=b=c=d=5 ; print(*[a,b,c,d]) # 1 2 3 4 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
1 2 3 |
it=iter("arcobaleno") it=iter(["a", "r", "c"]) ... |
divmod
1 |
print(divmod(13,5)) # (2, 3) |
exec / eval
…
yield
…
os.system / os.exit(0)
…