Learn how to use characters and booleans in your code as well as how to create, access, and store them in several programming languages, including C#, Python, Kotlin, and C++.
- Numerical data types aren't the only…data types we can have.…We can also represent true and false values in code…with the Boolean data type.…A Boolean has two possible values, true or false,…and it's usually used to perform logical operations…most commonly to determine whether some condition is true.…For example, we might have a Boolean…that stores whether a light is on, or off.…Let's forget about those dimmer lights for now,…but this specific light can only be on, or off.…
Those are the only two options we have for this light.…The same thing is true for Booleans.…Notice this also represents a condition.…We can ask the question,…is the light on, is the light off,…or even does the light exist?…The only answers to these questions…are true or false.…And that's exactly what a Boolean represents.…Let's pull up a quick code example.…Here we have an example in C# and Python.…In C#, we create a variable and store the data false…into that variable.…
The data is a type bool.…In Python, we create a variable,…and store the data true into it.…
- Data types: Booleans, numbers, strings, and more
- Multidimensional arrays
- Jagged arrays
- Search and sort arrays
- Linked lists
- Stacks and queues
- Hash functions and hash tables
- Trees and graphs
Skill Level Intermediate
Understand data structures1m 25s
1. Introduction to Data Structures
4. Stacks and Queues
5. Hash-Based Data Structures
6. Trees and Graphs
- 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.