Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#00 - python #34

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#https://www.python.org/
#00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO

"Ejercicio : "

#documentar en varias lineas
"""
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
* lenguaje de programación que has seleccionado.
* - Representa las diferentes sintaxis que existen de crear comentarios
* en el lenguaje (en una línea, varias...).
* - Crea una variable (y una constante si el lenguaje lo soporta).
* - Crea variables representando todos los tipos de datos primitivos
* del lenguaje (cadenas de texto, enteros, booleanos...).
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
"""


nombre = "santy" #Variable
VELOCIDAD_DE_LA_LUZ = 299792458 #CONSTANTE

#Tipo de datos primitivos

String : str = "Cadena de Texto"
Numero_Entero : int = 14
Numero_flotante : Float = 13.9
Boleano_True : bool = True
Boleano_False : bool = False

#Hola
print("Hola , mi nombre es " , nombre , " y esto es python")