tab error
h
RossJames (6)

hi,

I have no idea why i have an error on line 14. Any ideas?

thanks!

You are viewing a single comment. View All
TheDrone7 (560)

The indentation has to be applied after the colon. So according to that the correct format would be

cnt = 1
while line:
	print("Line {}: {}".format(cnt, line.strip()))
RossJames (6)

@TheDrone7 Hi, I have added this but now have more any ideas?

TheDrone7 (560)

@RossJames I believe you need to declare variables outside of that scope, although I am not sure.

AsadHumayun (0)

@RossJames Error on Line 14? Maybe you don't need an empty line or you have to declare something. I would recommend using an online Python code checker.