thumbnail

Keywords in Python Programming Language

In programming languages, keywords are reserved names which have special meanings, thus allowing a program to specify commands, parameters, etc. Can you name all keywords in the Python programming language?
Updated to Python version 3.12
Soft keywords are included in blue blackground cells
Quiz by jpedrocm
Rate:
Last updated: March 6, 2024
You have not attempted this quiz yet.
First submittedJune 28, 2020
Times taken1,959
Average score44.7%
Rating4.83
Report this quizReport
4:00
Enter keyword here:
0
 / 38 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
Initial
Keyword
A
and
as
assert
async
await
B
break
C
case
class
continue
Initial
Keyword
D
def
del
E
elif
else
except
F
False
finally
for
from
Initial
Keyword
G
global
I
if
import
in
is
L
lambda
M
match
N
None
nonlocal
not
Initial
Keyword
O
or
P
pass
R
raise
return
T
True
try
type
W
while
with
Y
yield
+2
Level 46
Mar 12, 2022
True, False and None are not keywords, they are built-in objects in the global namespace. There are other such objects (NotImplemented, Ellipsis, integers), but none of them should be in this quiz.
+3
Level 57
Mar 12, 2022
Yes, those are keywords. Please, check the official Python 3.9 documentation, which is posted in the caveats. If you still do not agree, you can make a case with their developers and maintainers to change this definition. Best regards.
+1
Level 50
Jul 15, 2022
This quiz needs to be updated: "match" and "case" are now "soft keywords" in Python
+1
Level 57
Jul 16, 2022
Thanks for the suggestion, I'm updating it
+1
Level 51
Feb 29, 2024
Where is print?
+2
Level 57
Mar 6, 2024
print is not a keyword
+1
Level 51
Mar 23, 2024
Then what is it
+1
Level 45
Mar 7, 2024
ezpz (1st to get 100%)