Skip to content

Commit

Permalink
Merge pull request #6000 from JheisonQuiroga/main
Browse files Browse the repository at this point in the history
#00 - Python
  • Loading branch information
Roswell468 authored Sep 9, 2024
2 parents 5c88421 + 5175f45 commit fb27798
Showing 1 changed file with 29 additions and 0 deletions.
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}!")


0 comments on commit fb27798

Please sign in to comment.