File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # *********************************
2
+ # * Nombre: Liliana Torres *
3
+ # * 2024 - Python *
4
+ # *********************************
5
+
6
+ # 1 - Crea un comentario en el código y coloca la URL del sitio web oficial del
7
+ # lenguaje de programación que has seleccionado.
8
+ # Sitio oficial de Python: https://www.python.org
9
+
10
+
11
+ # 2 - Representa las diferentes sintaxis que existen de crear comentarios
12
+ # en el lenguaje (en una línea, varias...).
13
+ # Este es un comentario en una linea
14
+
15
+ """Este es
16
+ un comentario
17
+ de
18
+ varias lineas
19
+ """
20
+
21
+
22
+ # 3 - Crea una variable (y una constante si el lenguaje lo soporta).
23
+ my_variable = "This is a variable"
24
+
25
+ PLANCK_CONSTANT = 6.626
26
+
27
+
28
+ # 4 - Crea variables representando todos los tipos de datos primitivos
29
+ # del lenguaje (cadenas de texto, enteros, booleanos...).
30
+ my_integer = 13
31
+
32
+ my_string = "This is a string"
33
+
34
+ my_float = 13.89
35
+
36
+ my_boolean = True
37
+
38
+
39
+
40
+ # 5 - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
41
+ print ("Hola, Python!" )
You can’t perform that action at this time.
0 commit comments