Parameters and Arguments
#Parameters
#Parameters are used when we define the function.
def the_dudes(name, sausage): #<- Parameters
print(f'you rock {name} {sausage}')
#Arguments
#The arguments are used when we call the function
the_dudes('gustav','🌭') #<- Arguments
the_dudes('jude', '🍡')
def hacer_pizza(topping, cantidad): #<- Parameters
print(f"Preparando pizza con {cantidad} porciones de {topping}")
hacer_pizza("pepperoni", 2) #<- Arguments
hacer_pizza("queso", 5)
def multiplicar(a, b): #<- Parameters
return a * b
print(multiplicar(3, 4)) #<- Arguments
print(multiplicar(5, 2))INFO