Explain types and positions
Optional arithmetic and percentage refresher — return to this activity
Create and inspect numbers, text and lists without confusing positions with values.
A variable name refers to a value; it is not a spreadsheet cell that automatically recomputes dependent values. If you assign total = quantity * price and later change quantity, total retains its earlier value until you calculate it again. Lists are mutable: changing an element changes that list. Copy input when the caller must retain the original. Type and position are separate questions: the first item can still be the wrong kind of value.
Your saved work
Prediction and changed Python line
No response recorded yet. You can write one in the task workspace.
Observed output and value types
No response recorded yet. You can write one in the task workspace.
A different order and your check
No response recorded yet. You can write one in the task workspace.
Return to your saved taskYour explanation is retained for your review. It is not automatically graded.
Loading saved work… Backups are available in My Learning.