Skip to content

Commit 62575ee

Browse files
authored
Merge pull request mouredev#7724 from bhairava11/patch-2
Create bhairava11.py
2 parents 62a461a + 4ec9ffd commit 62575ee

File tree

1 file changed

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

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# https://python.org
2+
3+
# Comentario en una línea
4+
5+
"""
6+
Esto también es
7+
un comentario
8+
en varias líneas
9+
"""
10+
11+
'''
12+
Esto también es
13+
un comentario
14+
en varias líneas pero con comillas simples
15+
'''
16+
17+
my_variable = "Mi tarea"
18+
my_variable = "Nuevo valor de mi tarea"
19+
20+
MY_CONSTANT = "Mi constante" # por convención
21+
22+
my_int = 8
23+
my_float = 4.7
24+
my_bool = True
25+
my_bool = False
26+
my_string = "Mi cadena de texto"
27+
my_other_string = 'Mi otra cadena de texto'
28+
29+
print("¡Hola, Python!")
30+
31+
print(type(my_int))
32+
print(type(my_float))
33+
print(type(my_bool))
34+
print(type(my_string))

0 commit comments

Comments
 (0)