Hi
you can still make it more efficient with the libraries offered by python, I recommend them :)
import math
def speed():
q = input('\nwhat do you want to work out using the speed formula?\n')
q=q.upper()
if q==('SPEED'):
M = int(input('what is the distance?in (Meters)\n'))
X = int(input('\nwhat is the time?(mins)\n'))
S=M/X
print('the speed is:', S, 'Meters per min')
if q==('TIME'):
M1 = int(input('what is the speed?(mpm)#meters per min\n'))
X1 = int(input('what is the distance?(meters)\n'))
T=M1/X1
print('the tme is\n',T,'Minutes')
if q==('DISTANCE'):
M2 = int(input('what is the speed?#meters per min\n'))
X2 = int(input('What is the time?(mins)\n'))
D=M2/X2
print('the distance is:\n',D+'Meters')
else:
speed()
R = int(input('Enter radius of cylinder:\n'))
H = int(input('Enter height of cylinder:\n'))
V=(math.pi*R*R*H)#EQUATION FOR VOLUME OF CYLINDER
A=(math.pi*2*R*R)+(2*3.14159*R*H)#EQUATION FOR SURFACE AREA OF CYLINDER
print('the volume of the cylinder is :\n',V)
print('the area of the cylinder is:\n',A)
speed()