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
My Response To iDubbbzTV | The Full Story
I got really anxious one month because I was like I spent like 800 on ubereats this month. I was like that’s bad. [Music] What’s up guys, it’s Graham here, and I’m not gonna lie, today is one of those moments where I have to sit down and pinch myself to …
At Night, This Bus Doubles As a Homeless Shelter | Short Film Showcase
[Music] Oh, make a lot of money. [Music] All right, you know this point out. Don’t lay it down, don’t put your feet on the seats. All right, you’re tired up against the window over there. Make it respectful for the next people that are getting off. They’r…
2-Hour Study With Me📚 6AM EDITION⏰[Chill Lo-Fi Music🎧](50/10 Pomoro🍅)
[Music] So [Music] [Music] just [Music] don’t stop [Music] let me explain something [Music] [Music] my [Music] you [Music] so [Music] so [Music] so [Music] so [Music] so [Music] foreign [Music] [Music] so [Music] so [Music] [Music] so [Music] [Music] so […
American Empire
The United States is, shockingly, a bunch of states that are united. It was just 13 to start with, but as time marched on, the border marked west, bringing us to today and the 48 contiguous states plus Alaska and Hawaii. They’re usually drawn in these lit…
Go with what you can get started on most quickly. And get that first user.
Here’s a question: I have lots of startup ideas. How do I choose the one to work on? Uh, common problem. There’s too many choices; there’s lots of choices in the world. You don’t know what to focus on. You know, there’s different algorithms you can use.…
Khan Academy Sample Zoom Class
Hey everyone, this is Jeremy Shifling at Khan Academy. Um, thank you so much for making time out of your busy back-to-school season to join us today. You know, there’s a ton going on in your class and in the world, and so I want to make the next 30 minute…