yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Learn to code in 60 seconds #programming #computerscience #python #khanacademy


less than 1m read
·Nov 10, 2024

Learn to code in 60 seconds. A program is a coded set of instructions for a computer to execute. Programs manipulate data, which come in several data types: integers, that's whole numbers; floats, have decimal points; booleans, true or false; and strings, of characters (don't forget the quotation marks).

Need to store a piece of data for later use? A variable names its location and points to it. Have a bunch of data? Organize it with a data structure. Lists store data in an ordered sequence, but we start counting at an index of zero. Dictionaries associate each piece of data with a key for easy lookup.

To make decisions in a program, ask a question with a Boolean expression. Then, choose which path to take with an if statement. To repeat a code routine, use a loop. A while loop repeats until the answer to your question becomes false. A for loop repeats a fixed number of times.

Have a lot of code? Break it down into smaller tasks with functions. Customize the function with input arguments and call the function to execute its task. Did you catch all that? Take it at your own pace with Khan Academy's intro to computer science course.

More Articles

View All
TAOISM | The Power of Letting Go
Mastery of the world is achieved by letting things take their natural course. You can not master the world by changing the natural way. Lao Tzu Our civilization is in a state of ongoing strivings, in which control seems to be the highest virtue. We don’…
Khan Academy Best Practices for Supporting Students in Special Education
Hi everyone, this is Jeremy Shieffling from Khan Academy. Hope you’re having a good hump day! I know we’re kind of in a hump season right now, trying to get over this big thing as a society. So I appreciate you making time out of everything going on in yo…
living alone🌞 | a productive day in my life ☕️📚🖋
[Applause] [Music] Good morning, my love! How you guys are doing? I’m doing awesome! If you watch my other vlogs, you probably know that I love eating. So for today’s breakfast, I was thinking about French toast. Let’s make it! So, I found a recipe for F…
Examples recognizing transformations
What we’re going to do in this video is get some practice identifying some transformations. The transformations we’re going to look at are things like rotations, where you are spinning something around a point. We’re going to look at translations, where y…
The Treasury Bond Collapse is Real.
With interest rates rising almost everywhere around the world, we are now facing yet another financial meltdown. I know, here we go again, right? But this time, there might just be some weight to the reports. By the end of this video, you’ll discover why …
What can I do to protect my devices?
Mark, I’m pretty convinced that I need to protect my devices from other folks. How should I think about that? How does one protect their device? Yeah. The first piece is really taking what the manufacturers and the companies behind them are giving you. S…