Python Forum
Basic Programming Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Programming Help
#4
(Sep-11-2018, 04:57 PM)ichabod801 Wrote: I expect that exercise is trying to get you to write a loop:

balance = 801
for month in range(6):
    balance = balance * (1.00417)
print(balance)
As @ichabod801 says, you need a loop. Don't forget to ask the user for the saving amount, and initialise the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
Basic Programming Help - by Travisbulls34 - Sep-11-2018, 02:30 PM
RE: Basic Programming Help - by caampos22 - Sep-11-2018, 04:20 PM
RE: Basic Programming Help - by ichabod801 - Sep-11-2018, 04:57 PM
RE: Basic Programming Help - by gruntfutuk - Sep-11-2018, 06:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Verilog HDL Programming to Python Programming? noobcoder 1 3,045 Jul-18-2019, 09:28 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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