Skip to main content
CodeSpeedTest
Languages
Start TypingJump into a test — pick any languageAdaptive TrainingUnlock chars as you master them — home row to !@#$%Practice DrillsFocused sessions targeting weak spotsDaily ChallengesNew coding challenges every dayRace ModeCompete against others in real timeAI OpponentRace against an AI at your WPM level
LeaderboardGlobal rankings for every languageCertificatesEarn verifiable Bronze / Silver / Gold certsActivityDaily streaks & historical analyticsProfileYour stats, badges & achievements
Browse Languages500+ languages with real code examplesBlogTips, guides & deep divesFAQCommon questions answeredGetting StartedNew to CodeSpeedTest?AboutOur story & mission
Pricing
Start Typing
Tools/Python Keywords

Python Keywords & Built-ins

All 35 reserved keywords in Python 3 plus the most-used built-in functions — in one scannable reference. Drill these by typing real Python snippets.

All 35 Python Keywords

These words are reserved by the interpreter and cannot be used as identifiers.

KeywordDescription
FalseBoolean false literal
NoneNull / absence of value
TrueBoolean true literal
andLogical AND operator
asAlias in import or with statements
assertAssertion / debug check
asyncDeclare an async function or block
awaitSuspend execution of a coroutine
breakExit the nearest enclosing loop
classDefine a new class
continueSkip to the next loop iteration
defDefine a function
delDelete a variable or object attribute
elifElse-if branch in conditional
elseFallback branch in if / for / try
exceptCatch an exception
finallyAlways-run block after try/except
forIterate over a sequence
fromImport specific names from a module
globalDeclare a global variable inside a function
ifConditional execution
importImport a module
inMembership test / loop iteration
isIdentity comparison (same object)
lambdaAnonymous one-line function
nonlocalRefer to an enclosing scope variable
notLogical NOT operator
orLogical OR operator
passNo-op placeholder statement
raiseRaise an exception
returnReturn a value from a function
tryBegin an exception-handling block
whileConditional loop
withContext manager (auto cleanup)
yieldProduce a value from a generator

Essential Built-in Functions

These ship with every Python installation — no imports needed.

FunctionPurpose
print()Output to stdout
len()Length of a sequence
range()Generate a range of integers
type()Return the type of an object
int()Convert to integer
str()Convert to string
float()Convert to float
list()Create or convert to list
dict()Create or convert to dict
set()Create or convert to set
tuple()Create or convert to tuple
bool()Convert to boolean
input()Read from stdin
open()Open a file
enumerate()Iterate with index + value
zip()Pair elements from multiple iterables
map()Apply function to each element
filter()Keep elements where function is True
sorted()Return a sorted list
reversed()Return a reversed iterator
sum()Sum an iterable
min()Return the smallest value
max()Return the largest value
abs()Absolute value
round()Round a number
isinstance()Check type with inheritance
hasattr()Check if attribute exists
getattr()Get attribute by name
setattr()Set attribute by name
repr()Official string representation

Practice typing these in CodeSpeedTest →

The fastest way to internalize Python syntax is to type real Python code — not read about it. Start with Hello World and work up to complex snippets.

Start typing Python now →Browse all languages
CodeSpeedTest

Improve your coding speed, code accuracy, and programming syntax WPM with practice sessions across 500+ programming languages.

Quick Links

HomeAboutFeaturesGetting StartedLanguages

Resources

Pro ⚡ PricingCertifyFAQBlogContactLeaderboardRaceChallengesFree ToolsWPM CalculatorPrivacy PolicyTerms of Service

Connect

CodeSpeedTest on GitHubCodeSpeedTest on TwitterEmail CodeSpeedTest

© 2026 CodeSpeedTest. All rights reserved.