Skip to content

Commit 1710eda

Browse files
authored
Merge pull request mouredev#4490 from Tashidian/python
#00 - Python
2 parents 0164692 + d76767c commit 1710eda

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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# https://www.python.org/
2+
3+
4+
# comentario de una sola línea
5+
6+
7+
"""
8+
Este comentario es realidad una
9+
un bloque de texto multilínea,
10+
pero al no estar asignado actúa
11+
como un comentario.
12+
"""
13+
14+
# VARIABLES
15+
16+
first_var = "Mi primera variable en Python."
17+
18+
CONSTANT = "Por convención, las constantes en Python se escriben en mayúsculas, sin embargo son variables normales que se pueden modificar."
19+
20+
# TIPOS DE DATOS PRIMITIVOS
21+
22+
# string str
23+
my_string = "Cadena de texto."
24+
25+
# Integer int
26+
my_integer = 7
27+
28+
# Float float
29+
my_float = 7.3
30+
31+
# Boolean bool
32+
my_boolean = False
33+
34+
# None NoneType
35+
my_none = None
36+
37+
# IMPRESIÓN POR TERMINAL
38+
language = "Python"
39+
print(f"¡Hola, {language}!")

0 commit comments

Comments
 (0)