,online learning,online class,video class,video tutorial,online education,eNmRjbVIZ0s,UC4a-Gbdw7vOaccHmFo40b9g, Knowledge,Technology, channel_UC4a-Gbdw7vOaccHmFo40b9g, video_eNmRjbVIZ0s,Apply test cases to debug logic errors in a racing game. Practice narrowing down the bug to a single function so you can review that function in isolation.
View the program used in this video at: https://www.khanacademy.org/python-program/race-track-debugging-with-test-cases/5936406120546304
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!
Course link: https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions
Course playlist: https://www.youtube.com/playlist?list=PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
TIMESTAMPS:
00:00 - 00:26 : racing game rules
00:27 - 01:00 : evaluating the starter code
01:01 - 01:38 : checking test cases
01:39 - 02:29 : car beyond the end of the track
02:30 - 03:44 : both cars at the same position
03:45 - 04:07 : cleaning up
,1,Share on Facebook: http://on.fb.me/1xTAX0Z
It's COLD in Atlanta! The polar vortex has resulted in record-low temperatures across the US. In the future, will we be able to control and manipulate extreme weather? In this episode, Jonathan explores the scientific and ethical consequences of weather modification technology.
What piece of science fiction gadgetry that doesn't exist yet do you want in YOUR possession? Let us know in the comments below!
--------------------------------------------------------
Subscribe to Fw:Thinking:
http://www.youtube.com/subscription_center?add_user=fwthinking
For the audio podcast, blog and more, visit the Fw:Thinking website:
http://www.fwthinking.com
Fw:Thinking on Twitter: http://www.twitter.com/fwthinking
Jonathan Stickland on Twitter: http://www.twitter.com/jonstrickland
Fw:Thinking on Facebook: http://www.facebook.com/FWThinking01
Fw:Thinking on Google+: https://plus.google.com/u/0/108500616405453822675/
[TRANSCRIPT]:
If the weather outside is frightful just hit Control Alt Delete!
Hey guys, it's Jonathan Strickland with Fw:Thinking and holy cow is it cold! It's ten degrees Fahrenheit here in Atlanta today. This is a city where we don't like to see ice unless it's in our tea! And it got me to thinking, when is someone finally going to fulfill the ambitions of Cobra Commander and build a working weather control device?
Here's the hard part. Weather systems are full of energy. NASA estimates that your average hurricane during its lifespan expends the equivalent energy of 10,000 nuclear bombs. With a system that complex and that energetic, we have trouble predicting it, much less controlling it. But that doesn't mean we haven't tried other ways to manipulate the weather.
Take cloud seeding for example. Now this is a method we've been using for decades to try and make it rain, and the idea is pretty simple. You've got a cloud full of moisture, so then you introduce millions of tiny particles so that water droplets can glom onto them and grow and grow until they're heavy enough to fall as rain or snow.
So, does it work? Maybe?
Here's the hard part, we can't really be sure when it rains if it rained because we seeded the cloud or if it was just going to rain anyway. But that hasn't stopped countries like China from putting hundreds of millions of dollars into research. In fact, they say that the reason we had such a sunny opening ceremony at the Beijing Olympics is because farmers in the surrounding area had been seeding the clouds and draining them of moisture so they wouldn't hit the city. Jury's still out on that one.
Meanwhile, some scientists are suggesting some pretty extreme ways to affect the weather. Including beaming microwaves either from the ground or from space in order to dismantle a tornado or steer a hurricane. But here's the thing, we don't know for sure that either of these methods would actually work, and the law of unintended consequences suggests that there's a possibility we could make things worse, rather than make them better.
There's also an ethical question. If you can steer a hurricane and deflect it from one area, what happens if it hits a different populated area? I would be shocked if we see weather control technology come into existence before I shuffle off this mortal coil. But what wouldn't surprise me is to see better and better prediction models. Because organizations like the National Oceanic and Atmospheric Administration have some of the world's most powerful supercomputers running on thousands of processor cores, and using some of the most sophisticated algorithms in existence to predict weather. So every year we're getting better and better at predicting weather.
So maybe we are never able to stop a polar vortex from turning me into an icicle. But we might be able to warn me enough so I can prepare for it.
Meanwhile, I'm gonna go find a way to thaw out!