Python Forum
I need help with floats and int
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with floats and int
#5
Another solution to your problem is to replace the "+" in the last line to a ",". That way, you are not trying to add a string and a float together, but just printing them out seperately.

print("the cost of filling the pool is: ",cost)
Reply


Messages In This Thread
I need help with floats and int - by calloflegend11 - Aug-25-2017, 03:16 PM
RE: I need help with floats and int - by nilamo - Aug-25-2017, 04:18 PM
RE: I need help with floats and int - by ichabod801 - Aug-25-2017, 04:20 PM
RE: I need help with floats and int - by BerlingSwe - Aug-27-2017, 10:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Round off floats in a list nagymusic 10 4,769 Apr-02-2019, 12:43 AM
Last Post: nagymusic
  def functions and floats alwillia 3 4,415 May-26-2018, 07:31 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020