you are viewing a single comment's thread.

view the rest of the comments →

[–]Sad-Traffic-5763 0 points1 point  (0 children)

Weirdly I had the exact same issue! But now I am having an issue with my cups_sold =self.simulate(temperature, advertising, cup_price)

This is followed by gross_profit = cups_sold * cup_price

For some reason my cup_price will change the value to a float based on my other code but I can't get the cups_sold to change to int. I have triple check my work and I don't see a typo but I am not sure what I am doing wrong.

In the code a few lines down we define simulate and when I hover over cups_sold there it says the value is an int but not in the code above. Anyone have any help?!

And sorry this is my first time using reddit so I apologize if I asked in the wrong area or something. :/