Python Forum
What am I doing wrong? New to Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What am I doing wrong? New to Python
#3
Thank you for your help, still a couple of issues with it, when attaching a return(total_amount) at the end of the code I get an error message "'return' outside function". Also I tested by printing the result, by doing this I noticed that it shows 4 different calculations one below the other representing each item in the list multiplied by 7. My intention is to have one number showing and that being the overall total.
Reply


Messages In This Thread
RE: What am I doing wrong? New to Python - by Stthmc_1995 - Jul-02-2019, 06:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,821 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  python gives wrong string length and wrong character thienson30 2 3,108 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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