-
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 #3067 from sergiovelayos/main
pull request reto 00
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/sergiovelayos.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,70 @@ | ||
# https://www.python.org/ | ||
|
||
|
||
|
||
# Comentario en una línea | ||
# Comentario 2 | ||
# Comentario 3 | ||
|
||
|
||
|
||
""" | ||
Esto es un comentario | ||
en varias líneas | ||
""" | ||
|
||
|
||
|
||
''' | ||
Esto es un comentario | ||
en varias líneas | ||
''' | ||
|
||
|
||
|
||
# Crear una variable | ||
|
||
my_variable = 1 + 1 | ||
|
||
|
||
|
||
# crear una constante | ||
|
||
# Python no tiene | ||
|
||
|
||
|
||
# datos primitivos | ||
|
||
# numeros enteros | ||
|
||
var_entero = 4 | ||
|
||
|
||
|
||
# numeros decimales | ||
|
||
var_decimal = 4.3 | ||
var_deci = 2.1 | ||
|
||
|
||
|
||
# boolean | ||
|
||
var_booleano = True | ||
|
||
|
||
|
||
# cadena de texto | ||
|
||
var_cadena = "ola k ase" | ||
|
||
|
||
|
||
print("Imprimir texto") |