how to fix error

a = float(input(“Please add the number of minutes!”))
b = a/60
print("The corespoding number of hours is: ", b + “h”)

so hard to understand what do you want. so variable a is meant to be float, so anybody can input with comma. than you try divide it with 60, so assume like to convert to hours
and then you probably get error - TypeError: unsupported operand type(s) for +: ‘float’ and ‘str’
cause you try to concatenate float with string. so suggestion for you

print('The corespoding number of hours is: ', b , 'h')

1 Like

I think, you should not use both ( , ) and ( + ).

1 Like

Thank you for your comment

Thanks, I will try to do

1 Like