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