Skip to content

Commit 2b4bbec

Browse files
authored
Merge pull request mouredev#6447 from pedroomar23/pedroomar25
#00 - Python
2 parents 46fc141 + 8134444 commit 2b4bbec

File tree

1 file changed

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

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Este es el sitio web del lenguaje de programación Python https://python.org
2+
3+
# Esto es un comentario en linea
4+
5+
'''
6+
Aqui puedes poner un comatario
7+
de varias lineas
8+
'''
9+
10+
"""
11+
Esto tambien es una comentario
12+
de varias lineas
13+
"""
14+
15+
# Aquí tenemos un ejemplo de variable
16+
my_variable = "Esta es mi variable"
17+
18+
# Aquí vemos como cambia
19+
my_variable = "Esta variable tiene un nuevo"
20+
21+
22+
# Aqui tenemos un ejemplo de una constante
23+
my_constant = "Esto es una constante"
24+
25+
# Aquí tenemos un valor de tipo string o cadena de texto
26+
my_string = "Esto es un String"
27+
28+
# Aqui tenemos un valor de tipo entero
29+
my_int = 1
30+
31+
# Aqui tenemos un valor de float
32+
my_float = 1.5
33+
34+
# Aqui tenemos valores de tipos boleanos (true or false)
35+
my_bool = True
36+
my_bool = False
37+
38+
# Imprimir en la consola
39+
print("Hola, estoy aprendiendo Python")
40+
print(type(my_variable))
41+
print(type(my_variable))
42+
print(type(my_string))
43+
print(type(my_string))
44+
print(type(my_int))
45+
print(type(my_float))
46+
print(type(my_bool))
47+
print(type(my_bool))
48+
49+
50+

0 commit comments

Comments
 (0)