Skip to content

Commit 35d9fb2

Browse files
authored
Merge pull request mouredev#6935 from PepeMN23/main
#00 - Python
2 parents 6f4ea2a + 5829e5e commit 35d9fb2

File tree

1 file changed

+27
-0
lines changed
  • Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Sitio web oficial de Python: https://www.python.org/
2+
3+
# Comentario en una sola línea
4+
5+
'''
6+
Comentario con saltos
7+
de línea
8+
'''
9+
10+
a = 10 # Esto es una variable, el numero puede cambiar
11+
DIEZ = 10 # Este valor se conserva lo largo del programa, es una constante.
12+
13+
# Tipos de datos primitivos
14+
string = "Este es un string"
15+
integer = 15
16+
float = 12.56
17+
booleano = True
18+
booleano = False
19+
lista = [1,2,3,4,5]
20+
tupla = (1,2,3,4,5)
21+
22+
#Imprimir por la terminal "¡Hola Mundo!"
23+
print("¡Hola, Python!")
24+
25+
26+
27+

0 commit comments

Comments
 (0)