Curso Completo De Python Programacion En Python Desde Cero -
entero = 42 # int flotante = 3.1416 # float cadena = "Python" # str booleano = True # bool (True/False) nulo = None # NoneType
print("¡Hola, mundo!") Ejecuta: python hola.py Comentarios curso completo de python programacion en python desde cero
# Aritméticos: + - * / // % ** print(10 / 3) # 3.333... print(10 // 3) # 3 (división entera) print(10 % 3) # 1 (resto) print(2 ** 3) # 8 (potencia) Lógicos: and or not 5. Estructuras de Control Condicionales (if/elif/else) entero = 42 # int flotante = 3