Often, you will encounter information that you will need to keep track of. Learn how to use variables to store information for accessing later.
- [Instructor] Did you ever play Hangman as a kid? … If so, you may remember, that one player, … also known as player one, … comes up with a word or a phrase, … and the other player, … also known as player two, has to guess it. … So when is the game over? … Well the game is over when player two … either uses up all of their guesses … without correctly guessing the word, … or they guess the word correctly … using the guesses they have. … Either way, the players need to keep track … of how many guesses are left throughout the game. … So as a fun exercise, let's say you were tasked … with coding Hangman, meaning you're building the game … so it can be played online. … How exactly would you keep track … of how many guesses are remaining? … You do this by using a variable. … A variable in programming is like a storage box. … You can use a variable to store … any kind of information or data. … Variables are useful because you can access … and change the contents of a variable anytime you want. …
This course was created by Madecraft. We are pleased to host this content in our library.
- What is Python?
- Strengths and benefits of Python
- Types of data
- Storing data using variables
- Built-in and custom functions
- Lists and tuples
- Conditional statements
- Iteration with loops
- Recursive functions
- Object-oriented programming
Skill Level Beginner
Learning the Python 3 Standard Librarywith Kathryn Hodge2h 9m Intermediate
Python Standard Library Essential Trainingwith Joe Marini2h 18m Intermediate
1. Defining Python
2. Fundamentals of Programming in Python: Data
3. Fundamentals of Programming in Python: Functions
4. Fundamentals of Programming in Python: Sequences
5. Fundamentals of Programming in Python: Conditional Statements
6. Fundamentals of Programming in Python: Iteration
7. Fundamentals of Programming in Python: Recursion
Define recursive functions6m 13s
8. Quick Intro to Object-Oriented Programming in Python
Next steps1m 8s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.