#  how to fix error

**URL:** <https://forum.codewithmosh.com/t/how-to-fix-error/11345>\
**Category:** Python\
**Created:** [March 17, 2022, 11:44pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345 "2022-03-17T23:44:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haiomtg2001](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@haiomtg2001](https://forum.codewithmosh.com/u/haiomtg2001)\
**Post date:** [March 17, 2022, 11:44pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345/1 "2022-03-17T23:44:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gintsm](https://avatars.discourse-cdn.com/v4/letter/g/f05b48/32.png) [@Gintsm](https://forum.codewithmosh.com/u/Gintsm)\
**Post date:** [March 18, 2022, 7:11am UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345/2 "2022-03-18T07:11:04Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![si\_thu\_khant](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@si\_thu\_khant](https://forum.codewithmosh.com/u/si_thu_khant)\
**Post date:** [March 18, 2022, 2:33pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345/3 "2022-03-18T14:33:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![haiomtg2001](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@haiomtg2001](https://forum.codewithmosh.com/u/haiomtg2001)\
**Post date:** [March 22, 2022, 11:59am UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345/4 "2022-03-22T11:59:37Z")

</div>

Thank you for your comment

---

<div class="post-metadata">

**Author:** ![haiomtg2001](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@haiomtg2001](https://forum.codewithmosh.com/u/haiomtg2001)\
**Post date:** [March 22, 2022, 12:00pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error/11345/5 "2022-03-22T12:00:09Z")

</div>

Thanks, I will try to do
