0

Help plz

If I’m making a calculator in python would I use a function? I’m still pretty new but would like to know if this would work? Example code: us = input(“enter number”) ub = input(“enter number again:”) Def function1(“ub + us”): Print(function1)

17th Sep 2018, 4:53 AM
Alexis Larios
Alexis Larios - avatar
5 Respostas
+ 3
you could, if you want to be able to make multiple calculations. else, it isn't needed
17th Sep 2018, 4:56 AM
Julian
Julian - avatar
+ 2
Check out the answers to this question. https://www.sololearn.com/Discuss/1485997/?ref=app
17th Sep 2018, 5:39 AM
Louis
Louis - avatar
+ 1
ok ty for letting me know tho preciate it man
17th Sep 2018, 4:59 AM
Alexis Larios
Alexis Larios - avatar
+ 1
hello
3rd Oct 2018, 11:01 AM
Namitdewan
Namitdewan - avatar
0
ty
17th Sep 2018, 5:54 AM
Alexis Larios
Alexis Larios - avatar