While loop execution problem

There is an Indentation error so give a Tab space before the read_five_times line so remove the error.

You may use this code for proper execution and before having the result you need to check whether the indentation is properly assign or not, cause sometimes due to the indentation error expected output not occurs

try_myCode

count =0
while (count<=5):
print(“Reading”)
if (count==5):
print(“Good”)
break

1st check all the statement ,belongs to same block code
You can try my code
Read_Five_Times = “No”
Count = 0
while Read_Five_Times == “No”:
print (“Reading”)
Count = Count + 1
if(Count == 5):
Read_Five_Times = “Yes”
print(“Good”)