Quick actions

cmd+k|ctrl+k

Navigation

Languages

Parameters and Arguments

Snippet info

Language

Python

Visibility

public

Author

gustav

Created

2026-08-02T14:46:33.347952Z

Updated

2026-08-08T19:36:50.939715Z

#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