File tree 1 file changed +40
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Sitio web de Python: https://www.python.org/
2
+
3
+ # Esto es un comentario
4
+
5
+ """
6
+ Esto es comentario en varias lineas en Python
7
+
8
+ """
9
+
10
+ '''
11
+
12
+ Esto es comentario en varias lineas en Python
13
+
14
+ '''
15
+ # Crear variable
16
+ mi_variable = "Hola, esta es mi variable"
17
+
18
+ # Suelen ser en MAYUSCULAS para nombrarlas y no se deben cambiar
19
+ MI_CONSTANTE = 3 ,14
20
+ MI_CONSTANTE = "Puede ser numerica tambien"
21
+
22
+ mi_cadena_texto = "Esto es una cadena de texto"
23
+
24
+ # Enteros, solo numeros enteros
25
+
26
+ my_int = 1
27
+
28
+ # Flotantes, usados para decimales
29
+
30
+ my_float = 3.14
31
+
32
+ # Booleanos, solo pueden tener estos dos valores
33
+
34
+ my_bool = True
35
+ my_bool = False
36
+
37
+ my_string = "Otra cadena de texto"
38
+ my_other_string = 'Asi se puede representar tambien'
39
+
40
+ print ("¡Hola, Python!" )
You can’t perform that action at this time.
0 commit comments