Skip to content

Commit 148abd8

Browse files
authored
Merge pull request mouredev#6383 from randy7394/main
Mi primer reto de programacion en Python
2 parents 39b7047 + 4f292f0 commit 148abd8

File tree

1 file changed

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

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# https://www.python.org/
2+
3+
# Comentario en una linea
4+
5+
'''
6+
Comentario
7+
en
8+
varias
9+
lineas
10+
'''
11+
12+
"""
13+
Esto tambien
14+
es un comentario
15+
en varias
16+
lineas
17+
"""
18+
19+
my_variable = "Esta es mi varibale"
20+
my_variable = "Este es el nuevo valor de my_variable"
21+
22+
MY_CONSTANT = "Esta es mi constante. Por favor no cambiar!" #Esto es una constante por convencion
23+
24+
my_integer = 1
25+
my_float = 1.5
26+
my_boolean = False
27+
my_string = "Hola mundo!"
28+
29+
print(f"Hola Python!")
30+
print(type(my_variable))
31+
print(type(MY_CONSTANT))
32+
print(type(my_integer))
33+
print(type(my_float))
34+
print(type(my_boolean))
35+
print(type(my_string))

0 commit comments

Comments
 (0)