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
Top 4 Qualities To Be A Successful Entrepreneur | The Geisha Teahouse NFT
[Music] With all the successes that you’ve had, given— and obviously you went through failures as well as successes throughout your career. Now, if you could travel back in time and meet your younger self, what would be like the piece of advice that you’…
the earth is running out of time..
New York City, one of the United States’ most recognizable cities. In September 2020, one of the many artistic landmarks of the city was repurposed. It was the metronome near Union Square. If you’ve ever walked by it or seen it online, you’ll probably not…
Warren Buffett's 5 Rules for Money
So if you clicked on this video, it’s fair to say that you want to learn how to build wealth and not be broke. Thankfully for us, billionaire investor Warren Buffett has provided us with five key principles that will help you start building wealth and avo…
Later stages of the Civil War part 2
All right, so we’ve been talking about the later stages of the Civil War. In the last video, we just did a brief overview of the end of 1863, after the North has won the Battle of Gettysburg and Lee has been turned around and sent back down to Richmond, w…
I caught Dad a chicken - The Chicken Wrangler
Dtin don’t tear down granddaddy Stakes, darl. [Music] Back, I’m taking pictures of you boy. A billions of birdies walking out loud, talking in C clams in the [Music]. CLS, go run that chicken up here. Tell that chicken to come up here so vibrating spiders…
The Origin of Consciousness – How Unaware Things Became Aware
Consciousness is perhaps the biggest riddle in nature. Stripped to its core meaning, consciousness is what allows us to be aware both of our surroundings and of our own inner state. But thinking about consciousness has this habit of taking us round in cir…