Khan Academy | Khan Academy
Oops. Something went wrong. Please try again. Uh oh, it looks like we ran into an error. You need to refresh. If this problem persists, tell us.
Programming with variables - AP CSP (practice) | Khan Academy
Practice variable assignment in the AP CSP pseudocode, in this set of free practice questions designed for AP Computer Science Principles students.
Conditionals with if/else & Booleans | AP CSP (article) | Khan …
Computer programs also make decisions, using Boolean expressions (true/false) inside conditionals (if/else). Thanks to conditionals, programs can respond differently based on …
Procedures with parameters | AP CSP (article) | Khan Academy
Essentially, variables are always scoped and you can't access data from outside that scope. This scoping allows you to reuse variable names and keep data consistent and secure by limiting …
Variables and assignment (video) | Variables | Khan Academy
A variable is a reserved location in the computer's memory for storing a value. We associate each location with a name, so it's easy for us as the programmers to refer to a specific location later.
Computational thinking with variables | Khan Academy
How does the way computers process information differ from how humans process information? Learn how computers interpret sequence and state as you write, run, and debug your first …
Teaching Variables: Analogies and Approaches - Khan Academy
10 sep. 2013 · As we're in the process of auditing and redoing our introductory talk-throughs, we find ourselves discussing the different approaches to teaching variables and debating which …
Type casting (video) | Khan Academy
The computer is very stubborn about its data types matching, and we can't change that, but we can change our values to be different data types. This is called type casting where we convert …
KA Computer Science Class 11 | Computing - Khan Academy
Learn to organize your code with functions. You'll define your own, understand variable scope, and use Python's built-in tools.
Data types (article) | Program execution | Khan Academy
For strings, the computer just maps each character to an integer using an encoding called ASCII. Then we can map that integer to binary as before. For example, the character "k" maps to the …