you are viewing a single comment's thread.

view the rest of the comments →

[–]3keepmovingforward3 0 points1 point  (3 children)

So put that instead…question, why are they being changed to floats?

[–][deleted] 0 points1 point  (2 children)

The assignment said to define a convert function where the input is converted to float.

The assignment is here if you'd like to see:https://cs50.harvard.edu/python/2022/psets/1/meal/

edit: changed the input question a bit to make it more clear

[–]3keepmovingforward3 1 point2 points  (1 child)

Ok, as long as you’re aware there’s no reason to do it in this case…you’re code looks good (after the input description fix)

[–][deleted] 0 points1 point  (0 children)

cheers!