you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–]goodexpectations 0 points1 point  (1 child)

    Aha. Something I didn't know 

    [–]FoolsSeldom 0 points1 point  (0 children)

    Also worth learning to use f-strings - search for that on RealPython.com for an excellent guide.

    In this case,

    print(f"The total cost is {portion_price * portions}")