-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path00_hello.py
More file actions
40 lines (33 loc) · 1.02 KB
/
00_hello.py
File metadata and controls
40 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# * importante
# / comentario
# ? dudas/querys
#! alerta
# TODO cosas por hacer
# // eliminado
'''Comentarios multi linea
---
---
---
'''
# * Hello World Python *
# *-------------------------------
# * imprime Texto simple
print('Hello Python')
# * imprime Tipo de dato
print(type('Hello Python')) # Tipo 'str' (string/texto)
print(type(5)) # Tipo 'int' (entero)
print(type(1.5)) # Tipo 'float' (decimal)
print(type(1 + 3j)) # Tipo 'complex' (numero complejos)
print(type(True)) # Tipo 'bool' (comparacion/igualdad/etc)
print(type([1, 2, 3])) # Tipo 'List' (lista)
print(type({'name': 'nombre'})) # Tipo 'Dictionary'
print(type({9.8, 3.14, 2.7})) # Tipo 'set'
print(type((9.8, 3.14, 2.7))) # Tipo 'Tuple'
# * Operadores Numericos *
print(2+3) # addition/suma (+)
print(2-3) # substraction/resta (-)
print(2*3) # multiplication (*)
print(3/2) # division (/)
print(3**2) # exponential (**)
print(3 % 2) # modulus (%)
print(3//2) # Floor division operator (//)