Skip to content

Commit 1ecf1e8

Browse files
authored
Merge pull request mouredev#3168 from NeftalyR/patch-2
#00 - Python
2 parents b9dfd7e + 9ef96fe commit 1ecf1e8

File tree

1 file changed

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

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#PAGINA WEB OFICIAL
2+
#https://www.python.org/
3+
4+
#COMENTARIOS
5+
# -> una sola almuadilla es un comentario de una línea
6+
"""
7+
Las tres comillas al abrir y cerrar
8+
se puede poner comentarios
9+
multilíneas
10+
"""
11+
12+
#VARIABLES -> la variable no tiene un tipo definido, toma el tipo del valor que declares
13+
variable = 20.2
14+
15+
#DATOS PRIMITIVOS
16+
# String
17+
texto = "hola"
18+
# Int
19+
numero = 2
20+
# Decimal
21+
decimal = 2.2
22+
# Tupla
23+
tupla = (2, 3, "ds")
24+
# Lista
25+
lista = [29, 30, "ad"]
26+
# Diccionario
27+
diccionario = {"Nombre": "Bryan", "Apellidos": "Guevara Ascoy"}
28+
# Booleano
29+
booleano = True
30+
31+
#IMPRIMIR
32+
print("Hola, Python")

0 commit comments

Comments
 (0)