-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 #6000 from JheisonQuiroga/main
#00 - Python
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/jheisonquiroga.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,29 @@ | ||
#https://www.python.org/ | ||
#1. Sintaxis de creacion de comentarios | ||
#1.1. Para una sola linea se utilizan los numerales (#) | ||
""" | ||
1.2. Comentar varias lineas: Se utilizan las comillas dobles o simples triples | ||
""" | ||
''' | ||
1.2. Comentar varias lineas: Se utilizan las comillas dobles o simples triples | ||
''' | ||
#2. Crea una variable y una constante si el lenguaje lo soporta | ||
mi_variable = 69 | ||
|
||
#2.1. Costante | ||
PI = 3.1416 | ||
|
||
#3. Tipos de datos | ||
|
||
cadena = "string" #Cadena de texto (str) | ||
numero_entero = 10 # Numero entero (int) | ||
numero_flotante = 3.5 # Numero flotante (float) | ||
booleano = True # Valor booleano (bool) | ||
lista = [1,2,3] # Lista (list) | ||
tupla = (1,2,3) # tupla (tuple) | ||
diccionario = {"clave" : "valor"} #Diccionario (dict) | ||
|
||
nombre_lenguaje = "Python" | ||
print(f"¡Hola, {nombre_lenguaje}!") | ||
|
||
|