0

problem with simple measurement #python

I have that code: d=float(input('Distance: ')) t=float(input('Time: ')) s=d/t print('Speed:', s) How can i add units(m/s) in the output? Ex: Distance: 50 Time: 2 Speed: 25 m/s

19th Dec 2016, 3:52 AM
Erick Bezerra
Erick Bezerra - avatar
1 Resposta
0
prin('Speed:', s, 'm//s')
19th Dec 2016, 4:04 AM
Rishi Anand
Rishi Anand - avatar