Python Forum
how to tell python to do something every 6 months
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to tell python to do something every 6 months
#1
# Imagine your income is 200k per year and you want to save 0.1% of your income monthly because there is a debt of about 100k on your name
# but my income increase certain percent by every 6 months and the certain percent will be input from the user
percent_increase = float(input(" What is the percentage increase ?")
#Question 1: how can i tell python to increase my income every 6 months and tell me how many months it took to pay my debt
Reply
#2
First, the line you posted is missing a close parenthesis at the end of the line.

Second, what have you tried? We'll help you fix your code, but we won't write it for you.

Third, check out this help page on how to post code.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to calculate a months' 1st, 4th, 7th day and also 1st again? cananb 1 1,559 Nov-11-2020, 09:17 PM
Last Post: deanhystad
  How to calculate the year by adding n months? pav1983 19 5,662 Jun-27-2020, 08:27 PM
Last Post: pav1983

Forum Jump:

User Panel Messages

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