diff --git a/Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/Sebs08.py b/Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/Sebs08.py new file mode 100644 index 0000000000..9984289eac --- /dev/null +++ b/Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/Sebs08.py @@ -0,0 +1,29 @@ +# COMENTARIOS +# https://.python.org/ +# Comentario de una línea +""" +Esto también es +un comentario +en varias líneas +""" +''' +Esto también es +otro comentario +en varias líneas +''' + +# CREACIÓN DE VARIABLES: se usa snake_case para escribir nombres de variables +mi_variable = "Esto es una variable" +mi_variable = "Nuevo valor de la variable" + +# CONSTANTE +MY_CONSTANT = "Mi constante" # por convención + +# TIPOS DE DATOS PRIMITIVOS +cadena = "Hola Mundo!" # str +entero = 8 # int +flotante = 22.1 # float +booleano = True # bool + +# IMPRESIÓN POR PANTALLA +print("¡Hola, Python")