I'm just starting to learn Python using a raspberry pi. One of the exercises on the pi website has the following code:
for i in range(2):
print("A")
print("B")
Which the tutorial says should give the output:
A
A
B
However, when I run this code in the Python 3.5.3 IDLE, I get a syntax error, with the second "print" highlighted. Any thoughts? Here is the website I'm referring to: