Skip to content

Commit 58ffa23

Browse files
authored
Merge pull request mouredev#7082 from YorjanVarela/practica-yorjan
##00-python
2 parents be08407 + f3a463c commit 58ffa23

File tree

1 file changed

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

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#https://www.python.org/ url del sitio oficial de python
2+
3+
#comemtario de una línea
4+
5+
"""
6+
comentario
7+
de
8+
varias lineas
9+
10+
11+
"""
12+
variable = "variable"
13+
CONSTANTE = 99 #sengún investigue se acostumbra a colocar las constantes en mayúsculas
14+
15+
#tipos de variables primitivas
16+
17+
string = "hola soy una variable string" #o cadena de texto
18+
strign = 'hola soy una variable string'
19+
string_2 = """hola soy una variable string
20+
en varias lineas"""
21+
22+
booleano = True or false #valores de verdadero o falso
23+
int = 33 #un entero
24+
float = 33.33 #un flotante o decimal
25+
26+
lista = [1,2,3,4,5]
27+
tupla = (1,2,3,4,5)
28+
dict = {"llave1":1, "llave2":2, "llave3":3, "llave4":4, "llave5":5}
29+
30+
print("¡Hola, Python!")

0 commit comments

Comments
 (0)