Issue 30753: not able to execute print command on page 16 of documentation (original) (raw)
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.
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 through the tutorial.
https://docs.python.org/3/tutorial/index.html
By the way, you say page 16 of which documentation? Are you reading from a book? Which book?