¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita1 Respuesta
+ 2
You only need them if you want to write two statements in one line:
print(1); print(0)
If you don't do that, don't use them. Python takes your 'enter' as the end of the line, so a ; doesn't add any value.