Is it possible to give input to function for two arguments during runtime? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to give input to function for two arguments during runtime?

22nd Jul 2020, 1:54 PM
Nikhil
Nikhil - avatar
2 Answers
+ 1
yes ,its possible
22nd Jul 2020, 2:21 PM
Ambati Veda priya
Ambati Veda priya - avatar
+ 5
Yes, def add(b,c): print(b+c) add(int(input()),int(input()))
22nd Jul 2020, 2:04 PM
Abhay
Abhay - avatar