File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ #PAGINA WEB OFICIAL
2
+ #https://www.python.org/
3
+
4
+ #COMENTARIOS
5
+ # -> una sola almuadilla es un comentario de una línea
6
+ """
7
+ Las tres comillas al abrir y cerrar
8
+ se puede poner comentarios
9
+ multilíneas
10
+ """
11
+
12
+ #VARIABLES -> la variable no tiene un tipo definido, toma el tipo del valor que declares
13
+ variable = 20.2
14
+
15
+ #DATOS PRIMITIVOS
16
+ # String
17
+ texto = "hola"
18
+ # Int
19
+ numero = 2
20
+ # Decimal
21
+ decimal = 2.2
22
+ # Tupla
23
+ tupla = (2 , 3 , "ds" )
24
+ # Lista
25
+ lista = [29 , 30 , "ad" ]
26
+ # Diccionario
27
+ diccionario = {"Nombre" : "Bryan" , "Apellidos" : "Guevara Ascoy" }
28
+ # Booleano
29
+ booleano = True
30
+
31
+ #IMPRIMIR
32
+ print ("Hola, Python" )
You can’t perform that action at this time.
0 commit comments