Skip to content

Commit bf777a2

Browse files
📜🤖 Added by blurb_it.
1 parent 345964a commit bf777a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
`elif` statements that follow an `else` block now have a specific error message.
2+
```py
3+
>>> if who == "me":
4+
... print("It's me!")
5+
... else:
6+
... print("It's not me!")
7+
... elif who is None:
8+
... print("Who is it?")
9+
File "<stdin>", line 5
10+
elif who is None:
11+
^^^^
12+
SyntaxError: 'elif' block follows an 'else' block
13+
```

0 commit comments

Comments
 (0)