Programming fundamentalsLesson 3 of 8 in the course Statements
Python Variable Assignment, Naming, and Printing
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Lesson progress
0 / 5
Your progress is kept in this browser only.Sign up to save it
Summary
Variables let a Python program refer to values by meaningful names. This lesson explains how to assign values to variables, choose valid and readable variable names, and print variables as output.
A variable is a name that refers to a value. For example, a program might use age for a person's age or birth for a date of birth. Names help people work with values without needing to refer to where the computer stores them.
All flashcards
Quiz questions
Based on Introduction to Python Programming by Udayan Das, Aubrey Lawson, Chris Mayfield, Narges Norouzi (OpenStax), licensed CC BY 4.0. Adapted into a summary, flashcards and quizzes.
More in Programming fundamentals
All Programming fundamentals lessonsProgramming fundamentalsTracing Conditional and Function-Call Control Flow5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsWhile Loops: Conditions, Counters, and Input-Controlled Repetition5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsVariable Scope: Global and Local Variables in Python5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsPython Function Arguments, Defaults, and PEP 8 Spacing5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsRecursive Cases and Base Cases in Elementary Math Functions5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsRecursive Binary Search, Three Towers, and Coin-Toss Sequences5 flashcards · 5 quiz questions · 4 gamesPlay free →