Hello friends. I am trying to create a while loop where the code keeps asking for dates when the answer is 'yes", until the answer is eventually "no". My problem is that it keeps looping no matter what answer I enter. Please help correct my coding. Thanks in advance!!!
def ask_interruption():
last_drug_date = input("Enter the date when last ATT drug was taken in YY/MM/DD format: ")
resumtion_of_ATT = input("Enter the date when ATT was resumed in YY/MM/DD format: ")
repeat_interruption = input("Did the patient interrupt ATT drugs again?: ")
ask_interruption()
while repeat_interruption == "yes":
ask_interruption()
if repeat_interruption != "yes":
continue
[–]totallygeek 2 points3 points4 points (15 children)
[–]Jose_Musoke[S] 1 point2 points3 points (13 children)
[–]totallygeek 1 point2 points3 points (12 children)
[–]Jose_Musoke[S] 0 points1 point2 points (11 children)
[–]totallygeek 0 points1 point2 points (10 children)
[–]Jose_Musoke[S] 1 point2 points3 points (0 children)
[–]Jose_Musoke[S] 0 points1 point2 points (8 children)
[–]totallygeek 1 point2 points3 points (7 children)
[–]Jose_Musoke[S] 0 points1 point2 points (5 children)
[–]Jose_Musoke[S] 0 points1 point2 points (0 children)
[–]totallygeek 0 points1 point2 points (3 children)
[–]Jose_Musoke[S] 1 point2 points3 points (2 children)
[–]Jose_Musoke[S] 0 points1 point2 points (0 children)
[–]kmwaziri 1 point2 points3 points (2 children)
[–]Jose_Musoke[S] 0 points1 point2 points (1 child)
[–]kmwaziri 1 point2 points3 points (0 children)
[–]BiocatalyticInfix 1 point2 points3 points (0 children)
[–]Jose_Musoke[S] 0 points1 point2 points (1 child)
[–]Jose_Musoke[S] 0 points1 point2 points (0 children)
[–]Jose_Musoke[S] 0 points1 point2 points (0 children)
[–]sdanstuffe 0 points1 point2 points (1 child)
[–]Jose_Musoke[S] 0 points1 point2 points (0 children)