Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Basic/00_helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
2 changes: 2 additions & 0 deletions Basic/01_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
13 changes: 12 additions & 1 deletion Intermediate/08_python_package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down