File tree 1 file changed +39
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://www.python.org/
2
+
3
+
4
+ # comentario de una sola línea
5
+
6
+
7
+ """
8
+ Este comentario es realidad una
9
+ un bloque de texto multilínea,
10
+ pero al no estar asignado actúa
11
+ como un comentario.
12
+ """
13
+
14
+ # VARIABLES
15
+
16
+ first_var = "Mi primera variable en Python."
17
+
18
+ CONSTANT = "Por convención, las constantes en Python se escriben en mayúsculas, sin embargo son variables normales que se pueden modificar."
19
+
20
+ # TIPOS DE DATOS PRIMITIVOS
21
+
22
+ # string str
23
+ my_string = "Cadena de texto."
24
+
25
+ # Integer int
26
+ my_integer = 7
27
+
28
+ # Float float
29
+ my_float = 7.3
30
+
31
+ # Boolean bool
32
+ my_boolean = False
33
+
34
+ # None NoneType
35
+ my_none = None
36
+
37
+ # IMPRESIÓN POR TERMINAL
38
+ language = "Python"
39
+ print (f"¡Hola, { language } !" )
You can’t perform that action at this time.
0 commit comments