0:00:06.041,0:00:10.240 Which grade are you in?[br]second, tenth grade, first grade 0:00:10.240,0:00:12.417 I was in the eight grade when I learned to program. 0:00:12.417,0:00:15.206 I got my first computer when I was in the sixth grade. 0:00:16.759,0:00:20.101 What me gets excited is[br]being able to fix peoples problems 0:00:20.309,0:00:23.538 You can express yourself;[br]you can build things from an idea. 0:00:24.486,0:00:27.083 Computer science is the basis for a lot of the things[br] 0:00:27.083,0:00:31.153 students and proffesionals will do[br]for the next 20 or 30 years. 0:00:31.153,0:00:34.122 I like programming because I like helping people. 0:00:34.219,0:00:39.173 I get the opportunity to build something[br]that's gonna make peoples life easier. 0:00:39.319,0:00:41.493 I think this is the closest thing we have to superpower. 0:00:41.607,0:00:43.763 Getting started is the most important part. 0:00:43.868,0:00:48.025 I'm a beginner and I want you to learn with me. 0:00:48.099,0:00:49.339 Hi, my name is Lyndsey 0:00:49.339,0:00:53.069 I majored in theaterian college, [br]but I also majored in computer science. 0:00:53.069,0:00:56.086 And now I'm model, act and write my own apps. 0:00:56.241,0:01:01.295 Let's use code to help Anna and Elsa [br]as they explore the magic and beauty of ice. 0:01:01.440,0:01:04.795 You'll create snowflakes and patterns[br]if you ice-skate 0:01:04.798,0:01:07.689 and make a winterwonderland[br]which you can share with your friends. 0:01:08.395,0:01:11.574 In the next hour, [br]you're going to learn the basics of how to code. 0:01:12.651,0:01:14.966 Traditionally programming is usually in text, 0:01:14.966,0:01:20.239 but we will use blockly which uses visual blocks,[br]which you can drag and drop to write programs. 0:01:20.516,0:01:23.151 This is how even university students learn the basics.[br] 0:01:23.151,0:01:26.021 Under the hood, you are still creating code. 0:01:26.021,0:01:30.691 The concepts you will be learning [br]are concepts which computer programmers are using every day 0:01:30.691,0:01:33.217 and are the foundation to computer science. 0:01:34.202,0:01:37.936 A PROGRAM is a set of instructions [br]that tell a computer what to do. 0:01:38.929,0:01:43.332 Let's build a code for a program that will help Elsa to create a simple line. 0:01:44.224,0:01:46.882 We will use this later to create more complex patterns. 0:01:48.418,0:01:50.790 Your screen is split into three main parts. 0:01:50.916,0:01:54.746 On the left is the ice surface [br]where you will run your program. 0:01:55.995,0:01:59.144 The instructions for each level [br]are written right below the surface. 0:01:59.768,0:02:05.757 This middle area is the toolbox and each of these blocks[br]is an action Elsa and Anna can do. 0:02:05.757,0:02:10.683 The white space on the right is called the workspace [br]and this is where we will build our program. 0:02:10.880,0:02:14.848 To move around the ice surface, you wiull use the "move forward"-block. 0:02:15.005,0:02:19.994 Here the move forward block says,[br]move forward by 100 pixels. 0:02:20.432,0:02:23.316 When we press run... What happens? 0:02:23.316,0:02:28.896 Elsa moves forward a certain amount on the screen...[br]100 pixels in fact. 0:02:28.896,0:02:32.586 Pixels are basically very tiny squares on your computer screen. 0:02:33.036,0:02:37.699 The other block in the puzzle sais:[br]"turn right by 90 degrees". 0:02:38.035,0:02:42.763 When we use the "turn right"-block,[br]that makes elsa turn a certain amount. 0:02:43.084,0:02:45.816 You can play around with how far you want elsa to turn. 0:02:46.055,0:02:52.314 The angle is measured from the path ahead of Elsa,[br]so this is the 90 degree turn... 0:02:52.479,0:02:54.418 and this is an 120 degree turn. 0:02:54.906,0:02:59.731 And remember, you can change the number of pixels or degrees[br]by clicking on the arrows next to them