Title: I don't know what the output code is. The compiler says there is an invalid character in identifier of line 3
Tags: python;python-3.x
Question: for a in range(0, 10, 2):
b += a − 1
print(a," ",b)
I am practicing on a past paper. Please help. And can someone please explain
the break and continue functions.

Here is the accepted answer: Character − is not a correct python identifier for minus operator, you need - instead:
&gt;&gt;&gt; 3 − 1
File "<stdin&gt;", line 1
3 − 1
^
SyntaxError: invalid character in identifier
&gt;&gt;&gt;
&gt;&gt;&gt; 3 - 1
It's actually a unicode with code point 8722:
&gt;&gt;&gt; ord('−')


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:05/27/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><python-3.x>', 'Title': "I don't know what the output code is. The compiler says there is an invalid character in identifier of line 3", 'ViewCount': 41, 'id': 37482960, 'user_AboutMe': None, 'user_AccountId': None, 'user_DisplayName': None, 'user_Reputation': None, 'user_Views': None, 'user_id': None}}