-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7939 from rayn1er/main
#00 - Python
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/rayn1er.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# /* | ||
# * ¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras? | ||
# * - Recuerda que todas las instrucciones de participación están en el | ||
# * repositorio de GitHub. | ||
# * | ||
# * Lo primero... ¿Ya has elegido un lenguaje? | ||
# * - No todos son iguales, pero sus fundamentos suelen ser comunes. | ||
# * - Este primer reto te servirá para familiarizarte con la forma de participar | ||
# * enviando tus propias soluciones. | ||
# * | ||
# * EJERCICIO: | ||
# * - 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]!" | ||
# * | ||
# * ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y | ||
# * debemos comenzar por el principio. | ||
# */ | ||
|
||
#Hola! Mi nombre es raul, realmente estoy decidido a cambiar mi vida finalmente despues de haber tropezado 3000 veces, asi que voy esta vez en serio! | ||
#Estaremos estudiando python! puedes descargarlo aca: https://www.python.org/ | ||
'''Asi tambien podemos comentar codigo | ||
..... :) | ||
''' | ||
|
||
|
||
python_variable = 'python' #esta es una variable | ||
PYTHON_CONSTANT = 'PYTHON' #como no existe en python una manera especifica para generar una constante, por convencion se escribe toda en mayusculas | ||
text = 'hola' #esto es un dato primitivo del tipo string o cadena de texto | ||
number = 123456 # y esto es un dato primitivo del tipo int | ||
float_number = 12.31313 # este es un float :) | ||
true = True #Un booleano verdadero | ||
false = False #un booleano falso | ||
|
||
print(f'Hola {python_variable}') |