Help plz | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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