-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 #3379 from OscarHub90/main
# 00 Python
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/oscarhub90.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,39 @@ | ||
|
||
# https://www.python.org/ | ||
|
||
""" | ||
Este es un comentario | ||
de varias líneas | ||
""" | ||
|
||
''' | ||
Este también funciona | ||
lo importante es que hayan | ||
3 comillas | ||
''' | ||
|
||
# 3. Crea una variable (y una constante si el lenguaje lo soporta). | ||
|
||
my_name = "Oscar C" | ||
|
||
# Python no tiene declaración explícita de constantes, sin embargo, por convención se declaran en mayúscula las vaiables que no se deben editar. | ||
|
||
CONSTANT_PI = 3.1416 | ||
|
||
# 4. Crea variables representando todos los tipos de datos primitivos | ||
|
||
var_int = 33 | ||
var_float = 3.14 | ||
var_string = 'hello' | ||
var_boolean = True | ||
var_boolean = False | ||
|
||
|
||
# 5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
|
||
print ("¡Hola, Phyton!") | ||
|
||
|
||
|
||
|
||
|
Empty file.
Empty file.