What can I also add to make it better? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What can I also add to make it better?

I have just finished this simple calculator on Python. What codes can I add to make it better? https://code.sololearn.com/c1PhAhDcyIcN/?ref=app

19th Oct 2022, 4:37 PM
ПолинаС
4 Answers
+ 9
... - for substraction * for multiplication / for devision''') # insert a new-line sequence '\n' direct before the triple quotes, # use 'division' ...
19th Oct 2022, 5:01 PM
Lothar
Lothar - avatar
+ 4
if operation == '+': print(f'{num1} + {num2} = {num1+num2}')
19th Oct 2022, 4:49 PM
Jayakrishna 🇮🇳
+ 1
Thanks!
19th Oct 2022, 4:56 PM
ПолинаС
+ 1
Thank you!
19th Oct 2022, 5:02 PM
ПолинаС