Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cuadrado(num):
- return num * num
- # Por posicion del parámetro:
- print(cuadrado(5))
- # Por nombramiento del parámetro:
- print(cuadrado(num=5))
- print()
- def exponenciacion(b, e):
- return b ** e
- print(exponenciacion(2, 6))
- print(exponenciacion(2, e=6))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement