Indentation is an important part while writing python code. In line 4,5,6 and 7 the statements are not indented properly. It is inside while loop, but not equal to the indentation of the print statement. Move the line 5,6 and 7 to the right equally indented and You will be error free.
Write it as:
1 Like
Thank you
It worked!:))