Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
After a = [1], b = a, and b.append(2), what is a?
from Python
beginner
1 min
After a = [1], b = a, and b.append(2), what is a?
[1, 2], because both names refer to the same list
[1], because assignment copies a list
It is undefined because b replaced a
Check
Ask AI about this kata
Report an error
previous kata
When does an else clause attached to a for loop run?
Quiz
next kata
In range(2, 5), enter the first excluded stop value
Fill in
A new version is available
Reload