Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def generar_escala(numero):
- return lambda multiplicador: multiplicador * numero
- multiplicar_por_2 = generar_escala(2)
- print(multiplicar_por_2(5))
- multiplicar_por_3 = generar_escala(3)
- print(multiplicar_por_3(5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement