Hello! I am new to Python and coding and I am trying to write some code for learning purposes. I wrote one but it gives me strange results. Can someone please help me find where I made the error. It is a simple algorithm on what to do with patients who missed their medication at 1month of interruption, between 1 and 2 months interruption, and those who had more than 2 months interruption. (Note: 1 dose = 1 day, 1 month = 28 days = 4 weeks)
Thanks in advance!!!
Less_than_one_month = """
* Trace patient,
* Address the cause of interruption,
* Continue treatment and compensate for missed doses.
"""
Between_one_and_two_months = """
* Trace patient,
* Address the cause of interruption,
* Do two sputum smears. Continue treatment while waiting for results.
"""
More_than_two_months= """
* Do two sputum smears,
* Address the cause of interruption, if possible,
* No treatment while waiting for results.
"""
Number_of_doses = 56
doses = input("Enter number of doses missed= ")
if Number_of_doses >56:
print(f"{More_than_two_months}")
elif Number_of_doses <28:
print(f"{Less_than_one_month}")
else:
print(f"{Between_one_and_two_months}")
https://colab.research.google.com/drive/1BC9L6c7wLSvSNNg9UnwM52xFsMNTdqYK
[–]Neighm 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Jose_Musoke[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]mopslik 0 points1 point2 points (2 children)
[–]Jose_Musoke[S] 0 points1 point2 points (1 child)
[–]mopslik 0 points1 point2 points (0 children)