📦 Asabeneh / 30-Days-Of-Python

📄 helloworld.py · 23 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23# 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