From e15f4517e21663ab4288f3a7a5ecdba11510e24f Mon Sep 17 00:00:00 2001 From: ANGELUSD11 Date: Wed, 12 Nov 2025 13:15:47 -0500 Subject: [PATCH 1/2] =?UTF-8?q?Primer=20PR=20en=20el=20curso,=20a=C3=B1adi?= =?UTF-8?q?endo=20m=C3=A1s=20tipos=20de=20datos=20en=20basics=20y=20clarif?= =?UTF-8?q?icando=20concatenaci=C3=B3n=20mediante=20fstring=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Basic/00_helloworld.py | 13 ++++++++++++- Basic/01_variables.py | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Basic/00_helloworld.py b/Basic/00_helloworld.py index d2c64317..c692865e 100644 --- a/Basic/00_helloworld.py +++ b/Basic/00_helloworld.py @@ -26,4 +26,15 @@ print(type(1.5)) # Tipo 'float' print(type(3 + 1j)) # Tipo 'complex' print(type(True)) # Tipo 'bool' -print(type(print("Mi cadena de texto"))) # Tipo 'NoneType' +print(type([1, 2, 3])) # Tipo 'list' +print(type((1, 2, 3))) # Tipo 'tuple' +print(type(range(10))) +print(type(print("Mi cadena de texto"))) # Mi cadena de texto -> Tipo 'NoneType' + +""" +Concatenación con f string +""" + +variable = "Hola, soy una variable :)" +print(f"La variable te saluda: {variable}") +print(f"El tipo de dato de la variable es: {type(variable)}") diff --git a/Basic/01_variables.py b/Basic/01_variables.py index 682c3f73..f910eaa6 100644 --- a/Basic/01_variables.py +++ b/Basic/01_variables.py @@ -18,6 +18,8 @@ # Concatenación de variables en un print print(my_string_variable, my_int_to_str_variable, my_bool_variable) print("Este es el valor de:", my_bool_variable) +# Puedes concatenar mediante f string :) +print(f"Este es el valor de: {my_bool_variable} concatenado mediante f string") # Algunas funciones del sistema print(len(my_string_variable)) From cf5423fdcb9ce4b2e8f2ded7e9b371fbb9755f92 Mon Sep 17 00:00:00 2001 From: ANGELUSD11 Date: Wed, 12 Nov 2025 13:47:10 -0500 Subject: [PATCH 2/2] add more info about python packages --- Intermediate/08_python_package_manager.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Intermediate/08_python_package_manager.py b/Intermediate/08_python_package_manager.py index e0e7410e..ea102396 100644 --- a/Intermediate/08_python_package_manager.py +++ b/Intermediate/08_python_package_manager.py @@ -2,17 +2,28 @@ ### Python Package Manager ### +##PIP (Python Install Packages) +#this command can be install new packages and utilities for different purposes from PyPi repository + # PIP https://pypi.org # pip install pip # pip --version -# pip install numpy +# pip install pandas (pandas is a data analysis library) +# pip install requests (requests is a library to make HTTP requests) +# pip install numpy (numpy is a library for numerical computing) + import pandas from mypackage import arithmetics import requests import numpy +# some packages can be used from a alias to simplify their use +# import numpy as np +# this is a common practice for numpy package +# import pandas as pd + print(numpy.version.version) numpy_array = numpy.array([35, 24, 62, 52, 30, 30, 17])