What is wrong with my code? Please i am a biginner , thank y'all in advance | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What is wrong with my code? Please i am a biginner , thank y'all in advance

def time_difference(hour1:float, hour2: float)->float: """return time_difference between hour1 and hour2, both from a range of 24(thus indicating hours in a day) time_difference (23,4) 19 time_difference (12,4) 8 time_difference (17,12) 5 """ return hour1 - hour2

17th May 2020, 9:43 PM
Tonny Makondesa
Tonny Makondesa - avatar
2 Respuestas
+ 3
Insert your code so it can be open in code editor
17th May 2020, 9:44 PM
Moshie Seidenfeld
Moshie Seidenfeld - avatar
0
Hey man. I tried it and it works thank pal
17th May 2020, 9:56 PM
Tonny Makondesa
Tonny Makondesa - avatar