Speed, Distance, Time
Hi, I ma a beginner and I was making this program which was going to give you the speed if you enter the distance and time and it was going to give you the time if you entered the distance speed. I am a beginner in Python. I have posted the code. Please check it and see the error and tell me how to fix it. This is the code https://repl.it/@abdullahrajput9/SpeedTime#main.py and this is the error:
And BTW I have just made the Speed finding code. Soo, when the program runs you have to enter the number 1 and then you can proceed. Thanks for helping :)
The error says
unsupported operator type(s) for / : str and str
This is saying that the two 'numbers' are actually phrases! (Example: It is '2' instead of 2) So to convert them you have to use
int(), like this
And then the formula should work?