File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # 1. Crear un comentario y colocar la URL del sitio web oficial del lenguaje de programación que he seleccionado
2+
3+ # https://www.python.org/
4+
5+ # 2. Representar las diferentes sintaxis que existen para creación de comentarios
6+
7+ # (#) <- Hash caracter o numeral
8+
9+ # Este es un comentario
10+
11+ # """ <- Triple quoted string
12+
13+ """
14+ Este es un comentario
15+ """
16+
17+ # 3. Creación de una variable y constante
18+ nombre_de_usuario = "hardynsnet" # Variable
19+
20+ # Nota: No existe una sintaxis que indique como se crea una constante en Python
21+ # Sin embargo, se usa una convención de nomenclatura en mayusculas para representar una constante en el lenguaje
22+ PI = 3.1416 # Ejemplo
23+
24+ # 4. Creacióon de variables representando tipos de datos primitivos.
25+ anio_actual = 2025 # Entero
26+ precio = 14.45 # Flotante
27+ es_activo = True # Booleano
28+ mensaje = "Hola Mundo" # Cadena
29+
30+ # 5. Imprimir por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
31+ print ("¡Hola, Python!" )
32+
You can’t perform that action at this time.
0 commit comments