File tree 1 file changed +28
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 1.Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
2
+ # Empezamos de cero!
3
+
4
+ # https://www.python.org
5
+
6
+ """
7
+ Este es
8
+ un comentario
9
+ en 3 lineas
10
+ """
11
+ # 2.Crea una variable (y una constante si el lenguaje lo soporta).
12
+ variable = "Mi Variable"
13
+ MY_CONSTANT = "Constante" # Esta constante puede mutar, pero al estar en mayusculas, por convencion nadie la deberia de cambiar
14
+
15
+ # 3.Crea variables representando todos los tipos de datos primitivos
16
+ int_var = 7
17
+ float_var = 2.5
18
+ bool_var = True
19
+ bool2_var = False
20
+ string_var = "Cadena de texto"
21
+ string2_var = 'Cadena de texto con comilla simple'
22
+
23
+ # 4.Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
24
+
25
+ YO = "Dkp-Dev!!"
26
+ PYTHON = "Python!!"
27
+
28
+ print ("Hola" , PYTHON , "soy " ,YO )
You can’t perform that action at this time.
0 commit comments