Skip to content

Commit 82a0c9a

Browse files
authored
Merge pull request mouredev#6888 from cesar-rosado/main
00 - Python
2 parents e17221a + ac5c92a commit 82a0c9a

File tree

1 file changed

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

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Sitio oficial
2+
# https://www.python.org
3+
4+
# Comentarios
5+
6+
# Esto es un comentario de una sola linea
7+
8+
"""
9+
Este es un comentario
10+
en varias líneas
11+
usando comillas dobles
12+
"""
13+
14+
"""
15+
Este es un comentario
16+
en varias líneas
17+
usando comisillas simples
18+
"""
19+
20+
# Variables
21+
x = 10
22+
23+
# Constantes
24+
PI = 3.14159
25+
26+
# Variables con datos primitivos
27+
28+
# Enteros
29+
num = 5
30+
# Flotantes
31+
num2 = 5.5
32+
# Cadena de texto
33+
texto = "Hola mundo"
34+
# Boolean
35+
x = True
36+
y = False
37+
38+
# Imprime Hola, [Nombre del lenguaje]
39+
print("Hola, Python")

0 commit comments

Comments
 (0)