Steven D'Aprano added the comment:
This is a bug in your code, not Python, and the error tells you how to fix it.
You have to indent the block.
>>> while b < 1000:
... print(b, end=',')
... a, b = b, a+b
Remember to press TAB or spacebar inside indented blocks.
You should work
New submission from Vishal Devgn:
>>> a, b = 0, 1
>>> while b < 1000:
... print(b, end=',')
... a, b = b, a+b
in 3.6 as soon as i write print command, it displays an indentation error.
--
files: 1.png
messages: 296821
nosy: Vishal Devgn
priority: normal
severity: normal
status: open