¿Cómo haces repetir dos operaciones con diferentes variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

¿Cómo haces repetir dos operaciones con diferentes variables?

25th Sep 2017, 11:14 PM
Oscar Ortiz Barba
Oscar Ortiz Barba - avatar
2 Answers
+ 1
Define a function for the operation d=5 e=2 def operation(a, b): print(a+b) print(a*b) operation(d,e)
26th Sep 2017, 5:09 PM
Paul Ungureanu
Paul Ungureanu - avatar
+ 1
thanks bro
26th Sep 2017, 7:06 PM
Oscar Ortiz Barba
Oscar Ortiz Barba - avatar