Dear people, i have recently started learning Python (about a week ago) and i am trying to write a calculator.
At first i made a simple one, to do adding up. But then i wanted to give the user the option to choose between + - or /.
I get to the point where everything adds up to be 10+10 example, instead of 20.
this is my code:
this is what i get when i run it:
How do i make it go from 10+10 to 20?
I've already tried changing str to int or float, but it gave an error.
Thank you!
Boudewijn
At first i made a simple one, to do adding up. But then i wanted to give the user the option to choose between + - or /.
I get to the point where everything adds up to be 10+10 example, instead of 20.
this is my code:
this is what i get when i run it:
How do i make it go from 10+10 to 20?
I've already tried changing str to int or float, but it gave an error.
Thank you!
Boudewijn