0

Methods to call a function

On Python, how is another way to receive input() and add as parameters in a function. As example 200.43 then 10. So call a function def my_function(aaaa, bbbb): ?

15th Jul 2023, 5:38 AM
Nicolás Morales
Nicolás Morales - avatar
3 ответов
+ 7
You can call the function in this way: my_function(float(input()),int(input()))
15th Jul 2023, 6:42 AM
JaScript
JaScript - avatar
+ 2
Nicolás M S Im not really sure what you mean. Like getting user input and use that as an argument for your function?
15th Jul 2023, 6:00 AM
Junior
Junior - avatar
+ 1
Yeah, I try it.
15th Jul 2023, 12:21 PM
Nicolás Morales
Nicolás Morales - avatar