mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
23 lines
644 B
Python
23 lines
644 B
Python
# Introducción
|
|
# Día 1 - Desafío 30DaysOfPython
|
|
|
|
print(2 + 3) # suma(+)
|
|
print(3 - 1) # resta(-)
|
|
print(2 * 3) # multiplicación(*)
|
|
print(3 / 2) # división(/)
|
|
print(3 ** 2) # exponencial(**)
|
|
print(3 % 2) # módulo(%)
|
|
print(3 // 2) # División de piso(//)
|
|
|
|
# Comprobando los tipos de datos
|
|
|
|
print(type(10)) # Int
|
|
print(type(3.14)) # Float
|
|
print(type(1 + 3j)) # Complejo
|
|
print(type('Asabeneh')) # Cadena
|
|
print(type([1, 2, 3])) # Lista
|
|
print(type({'name':'Asabeneh'})) # Diccionario
|
|
print(type({9.8, 3.14, 2.7})) # Conjunto
|
|
print(type((9.8, 3.14, 2.7))) # Tupla
|
|
|