Skip to content

Commit 3bb9026

Browse files
committed
#00 - Python
1 parent 373bcbe commit 3bb9026

File tree

1 file changed

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

1 file changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## 1.Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
2+
3+
#Website of Python: https://www.python.org/ ; Documentation: https://docs.python.org/3/ ; Python Documentation by Version: https://www.python.org/doc/versions/
4+
5+
6+
## 2. Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje (en una línea, varias...).
7+
8+
# This is a comment on a line
9+
10+
11+
# Multi
12+
# Line
13+
# Comment
14+
15+
""" Multi-line Comment""" # double triple quotes multiline string
16+
17+
''' Multi-line Comment''' # simple triple quotes multiline string
18+
19+
## 3. Crea una variable (y una constante si el lenguaje lo soporta).
20+
21+
# variable
22+
num=10
23+
24+
#Constante
25+
PI = 3.1416
26+
27+
## 4. Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
28+
29+
# String
30+
name = "Alejandro"
31+
# Integer
32+
age = 30
33+
# Float
34+
height = 1.80
35+
# Boolean
36+
is_male = True
37+
is_female = False
38+
39+
## 5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
40+
print('¡Hola, Python!')

0 commit comments

Comments
 (0)