Python Forum
Basic Programming Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Programming Help
#2
Do you mean like this?

** Just remove all the prints (that makes it show each month)


inicial = float(eval(input('Enter the montly saving amount: ')))
x = (1 + 0.00417)


month_one = inicial * x
month_two = (inicial + month_one) * x
month_three = (inicial + month_two) * x
month_four = (inicial + month_three) * x
month_five = (inicial + month_four) * x
month_six = (inicial + month_five) * x

print('The sixth month value is: '+str(month_six))
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,069 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