##### 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 :)

# use `int`

in your code

so they need to be `ints`

Thanks a LOT for the help :) @RYANTADIPARTHI

@abdullahrajput9 np, can you please mark my answer? Thanks!

UMM Actually someone answered first and I marked him, I don't

think I can mark again. I tried but it didn't work. Really Sorry @RYANTADIPARTHI

But you can always have an upvote @RYANTADIPARTHI

@abdullahrajput9 , oh, np

@abdullahrajput9 Thanks!

@abdullahrajput9 it's np, at least i got an upvote right? :)

More than 1 upvote LOL (Not taking credit BTW) @RYANTADIPARTHI

@abdullahrajput9 yeah, thx!!

@abdullahrajput9 could you explain the last part a bit better? thx

@RYANTADIPARTHI cycle farming, replit cycles aren't youtube likes

Umm NVM @RYANTADIPARTHI Just thanks for the help :)

@abdullahrajput9 yeah, np!

Not advertising guys but this is the final version of what I was planning to make https://repl.it/talk/share/Speed-Distance-Time-Finder/60420 ((Thanks to you all)) Not looking for upvotes either :)

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?

Thank you SOOOOOOOOO MUCH @Muffinlavania It fixed my code. Thanks a lot

@abdullahrajput9 yeeeeeeeeee

Not advertising guys but this is the final version of what I was planning to make https://repl.it/talk/share/Speed-Distance-Time-Finder/60420 ((Thanks to you all)) Not looking for upvotes either :)

### You have that error, you have to convert those numbers (which are strings by default) to integers by doing `int()`

and the number or variable inside those brackets.

Not advertising guys but this is the final version of what I was planning to make https://repl.it/talk/share/Speed-Distance-Time-Finder/60420 ((Thanks to you all)) Not looking for upvotes either :)

This is how you do the speed formula in python:

Thanks @SUHASTADIPARTH1 It fixed my code Thanks A LOT MAN

@abdullahrajput9 No problem :)