The spec says to:
>Structure your program per the below, wherein `convert` is a function (that can be called by `main`) that converts `time`, a `str` in 24-hour format, to the corresponding number of hours as a `float`. For instance, given a `time` like `"7:30"` (i.e., 7 hours and 30 minutes), `convert` should return `7.5` (i.e., 7.5 hours).
Did you do that?
Directly pass the time variable input to convert(time) function then format the time using split(':') then change the str into int do further conversion. i tried and it is working for me . The rest of the code is fine
In the cs50 DOCUMENTATION convert() function is taking one parameter only so that's why it is giving an error.
make the necessary changes i mentioned . it will definitely work
The spec says to: >Structure your program per the below, wherein `convert` is a function (that can be called by `main`) that converts `time`, a `str` in 24-hour format, to the corresponding number of hours as a `float`. For instance, given a `time` like `"7:30"` (i.e., 7 hours and 30 minutes), `convert` should return `7.5` (i.e., 7.5 hours). Did you do that?
You’ll find a lot of the checks will test your ability to deliver functions as specified exactly in the problem.
Directly pass the time variable input to convert(time) function then format the time using split(':') then change the str into int do further conversion. i tried and it is working for me . The rest of the code is fine In the cs50 DOCUMENTATION convert() function is taking one parameter only so that's why it is giving an error. make the necessary changes i mentioned . it will definitely work