WEBVTT 00:02:10.910 --> 00:02:17.370 hi and welcome to code break my name is 00:02:14.100 --> 00:02:19.140 Hadi and across zoom Facebook live and 00:02:17.370 --> 00:02:20.100 YouTube live we have tens of thousands 00:02:19.140 --> 00:02:21.630 of people joining us 00:02:20.100 --> 00:02:23.040 so yeah they were hoping to build the 00:02:21.630 --> 00:02:25.620 world's largest live interactive 00:02:23.040 --> 00:02:27.810 classroom with so many students at home 00:02:25.620 --> 00:02:30.120 my team at code.org invites families 00:02:27.810 --> 00:02:31.950 everywhere to join us for a weekly dose 00:02:30.120 --> 00:02:34.080 of inspiration community in computer 00:02:31.950 --> 00:02:37.230 science I'm here with my daughter and 00:02:34.080 --> 00:02:39.450 sidekick Sophia she's a budding computer 00:02:37.230 --> 00:02:41.490 scientist and I'd like to introduce our 00:02:39.450 --> 00:02:45.660 first special guests the amazing actress 00:02:41.490 --> 00:02:47.070 and activist Yara Shahidi yeah hi how 00:02:45.660 --> 00:02:50.370 are you and we're you calling us from 00:02:47.070 --> 00:02:54.180 I'm good I'm calling from LA where I am 00:02:50.370 --> 00:02:55.530 with my family quarantined and how are 00:02:54.180 --> 00:02:58.560 you spending this time with everything 00:02:55.530 --> 00:03:01.830 closed I mean it's been a mixture of 00:02:58.560 --> 00:03:05.250 keeping busy while learning and then 00:03:01.830 --> 00:03:07.830 lots of family activities one of my 00:03:05.250 --> 00:03:10.260 brothers made a podcast in his free time 00:03:07.830 --> 00:03:13.050 so it's really just been trying to stay 00:03:10.260 --> 00:03:15.630 creative and you've been in school that 00:03:13.050 --> 00:03:18.870 school just finished for you yes the 00:03:15.630 --> 00:03:22.920 other day literally mmm 24 hours ago 00:03:18.870 --> 00:03:24.450 very proud my last papers and when 00:03:22.920 --> 00:03:26.400 you're you you're sitting in Harvard 00:03:24.450 --> 00:03:30.470 where you're even yeah I'm a sophomore 00:03:26.400 --> 00:03:32.489 so I'm now a rising junior awesome in 00:03:30.470 --> 00:03:34.380 Yara's do many thoughts you want to 00:03:32.489 --> 00:03:35.880 share with students who like you have 00:03:34.380 --> 00:03:37.530 been studying at home and are probably 00:03:35.880 --> 00:03:41.489 struggling with staying motivated in law 00:03:37.530 --> 00:03:43.830 school no I know I know and understand 00:03:41.489 --> 00:03:45.900 because not only am i doing it both of 00:03:43.830 --> 00:03:48.810 my brothers who are in middle and high 00:03:45.900 --> 00:03:50.880 school have been distance learning I 00:03:48.810 --> 00:03:53.010 know it can be difficult I think the way 00:03:50.880 --> 00:03:55.140 that I've done it is I've tried to 00:03:53.010 --> 00:03:56.489 create my own goals for myself because 00:03:55.140 --> 00:03:59.730 it's sometimes hard to stay motivated 00:03:56.489 --> 00:04:01.770 with their goals so whether that I mean 00:03:59.730 --> 00:04:03.180 something super simple I am a secretly a 00:04:01.770 --> 00:04:04.560 grandmother so whether that's 00:04:03.180 --> 00:04:06.810 knowing that I get to crochet when I 00:04:04.560 --> 00:04:09.480 finish an assignment or get to go learn 00:04:06.810 --> 00:04:11.219 a new skill then that's usually what 00:04:09.480 --> 00:04:15.870 inspires me to get through whatever I 00:04:11.219 --> 00:04:18.239 need to finish it well I'd like to 00:04:15.870 --> 00:04:21.180 introduce another special guest fuzzy 00:04:18.239 --> 00:04:21.479 Kawasaki fuzzy how are you hi I'm doing 00:04:21.180 --> 00:04:24.630 great 00:04:21.479 --> 00:04:26.490 how are you I'm great at fuzzy is the 00:04:24.630 --> 00:04:28.130 inventor of Google Spreadsheets and 00:04:26.490 --> 00:04:30.509 where are you calling us from I'm 00:04:28.130 --> 00:04:33.930 calling from beautiful New Jersey 00:04:30.509 --> 00:04:35.460 overlooking New York and probably the 00:04:33.930 --> 00:04:38.400 question everybody wants to know what 00:04:35.460 --> 00:04:41.729 kind of name is fuzzy what kind of name 00:04:38.400 --> 00:04:45.750 is fuzzy it's a very it's a very popular 00:04:41.729 --> 00:04:48.660 Persian name no it's a nickname my 00:04:45.750 --> 00:04:51.599 soccer coach decided to call me fuzzy 00:04:48.660 --> 00:04:53.220 and it's stuck and how will you serve me 00:04:51.599 --> 00:04:55.800 well because everyone who meets me 00:04:53.220 --> 00:04:58.949 thinks oh what a what a funny name and 00:04:55.800 --> 00:05:02.849 it's a good conversation starter all 00:04:58.949 --> 00:05:04.979 right well we're gonna start today's I 00:05:02.849 --> 00:05:07.169 guess conversation with the computer 00:05:04.979 --> 00:05:08.970 joke of the day and so he has I've got a 00:05:07.169 --> 00:05:11.039 little sound machine that uses because 00:05:08.970 --> 00:05:13.349 we have so we're kind of low production 00:05:11.039 --> 00:05:15.330 here idea you wanted to tell fuzzy and 00:05:13.349 --> 00:05:17.490 you are on your joke of the day okay 00:05:15.330 --> 00:05:29.669 what did computers do just before going 00:05:17.490 --> 00:05:33.030 to bed what did they do spreadsheets 00:05:29.669 --> 00:05:34.830 Duke just for fuzzy thank you now let's 00:05:33.030 --> 00:05:37.289 meet our live audience we're gonna 00:05:34.830 --> 00:05:39.120 switch to gallery view so we can see the 00:05:37.289 --> 00:05:41.280 names put on the faces of all the 00:05:39.120 --> 00:05:53.810 students are joining us on camera can 00:05:41.280 --> 00:05:53.810 everybody wave and say hello everybody 00:05:54.979 --> 00:06:00.419 I'd like to also have us say hello to 00:05:57.960 --> 00:06:02.460 the rest of our audience we can't see 00:06:00.419 --> 00:06:04.560 the majority of our audience but I'm 00:06:02.460 --> 00:06:07.560 gonna screen share as they were joining 00:06:04.560 --> 00:06:08.130 this we give them a chance to put where 00:06:07.560 --> 00:06:13.380 they're from 00:06:08.130 --> 00:06:14.909 on a map so here's our map oh wow Yara 00:06:13.380 --> 00:06:15.510 and fuzzy I don't know if you expected 00:06:14.909 --> 00:06:17.850 to have people 00:06:15.510 --> 00:06:20.310 from all over the world but time zones 00:06:17.850 --> 00:06:23.220 very far away from here 00:06:20.310 --> 00:06:24.480 yes great look that everyone's tuning in 00:06:23.220 --> 00:06:29.070 yeah 00:06:24.480 --> 00:06:33.390 a lot of you yeah it see there's people 00:06:29.070 --> 00:06:35.790 as early as 6 a.m. 7 a.m. 1 a.m. really 00:06:33.390 --> 00:06:37.350 from all time zones for joining in that 00:06:35.790 --> 00:06:38.640 for this live classroom which has really 00:06:37.350 --> 00:06:44.040 just been an incredible thing to see 00:06:38.640 --> 00:06:46.350 happen during this pandemic so also just 00:06:44.040 --> 00:06:50.850 you know these students are they range 00:06:46.350 --> 00:06:52.170 from age 66 260 from all grades there 00:06:50.850 --> 00:06:53.880 are also different levels of experience 00:06:52.170 --> 00:06:56.310 some beginners some intermediate some 00:06:53.880 --> 00:06:57.600 advanced if you're advanced please be 00:06:56.310 --> 00:06:59.790 patient with us we're gonna start with 00:06:57.600 --> 00:07:01.350 the easy stuff and if you're a beginner 00:06:59.790 --> 00:07:03.180 please stick with us through the whole 00:07:01.350 --> 00:07:05.630 classroom even if it goes too fast for 00:07:03.180 --> 00:07:08.160 you hopefully you'll soak something out 00:07:05.630 --> 00:07:09.870 also if you have questions during the 00:07:08.160 --> 00:07:10.320 show for either of our special guests or 00:07:09.870 --> 00:07:13.050 for me 00:07:10.320 --> 00:07:15.480 you can visit code.org slash questions 00:07:13.050 --> 00:07:17.370 to submit your questions today we have 00:07:15.480 --> 00:07:19.920 three parts in our episode we're gonna 00:07:17.370 --> 00:07:21.870 talk about variables today and we're 00:07:19.920 --> 00:07:24.720 gonna learn about variables first in an 00:07:21.870 --> 00:07:27.060 unplugged way then about using variables 00:07:24.720 --> 00:07:29.790 in games and lastly about using 00:07:27.060 --> 00:07:31.200 variables and apps valuables are one of 00:07:29.790 --> 00:07:34.050 the most important things in computer 00:07:31.200 --> 00:07:35.700 science but before we move on to today's 00:07:34.050 --> 00:07:37.470 lesson we want to welcome some students 00:07:35.700 --> 00:07:40.020 to demo their creations to our special 00:07:37.470 --> 00:07:42.270 guests last week's challenge was to make 00:07:40.020 --> 00:07:44.520 your own flow chart or to modify the 00:07:42.270 --> 00:07:46.830 apps we made for you the magic 8-ball 00:07:44.520 --> 00:07:48.750 app for the DECA stroller app and each 00:07:46.830 --> 00:07:50.760 week when you share your creations we'll 00:07:48.750 --> 00:07:54.420 invite you to show them the best ones on 00:07:50.760 --> 00:07:56.250 next week's episode so Yara and fuzzy 00:07:54.420 --> 00:07:58.320 you ready to meet our two students from 00:07:56.250 --> 00:08:00.900 last week I'm so ready 00:07:58.320 --> 00:08:02.820 alright so doc who's from India 00:08:00.900 --> 00:08:06.390 submitted a dice roller project this 00:08:02.820 --> 00:08:10.470 week doc we're gonna unmute you can you 00:08:06.390 --> 00:08:17.790 tell us more about yes are you there 00:08:10.470 --> 00:08:22.470 yeah we're from India hello hi their way 00:08:17.790 --> 00:08:24.510 from India India let me screen share 00:08:22.470 --> 00:08:29.130 your app and then you can tell us more 00:08:24.510 --> 00:08:32.310 about it it's a very nice hat by the way 00:08:29.130 --> 00:08:34.979 it's actually no there are two variables 00:08:32.310 --> 00:08:37.710 first one is first variable the first 00:08:34.979 --> 00:08:41.310 variable we put a straightforward 00:08:37.710 --> 00:08:43.470 equivalent to random integer second one 00:08:41.310 --> 00:08:46.830 there if there is variable which we put 00:08:43.470 --> 00:08:50.790 equivalent to random number which which 00:08:46.830 --> 00:08:53.190 it picks from 1 to 10 as as we click 00:08:50.790 --> 00:08:55.680 dark then there is number come whether 00:08:53.190 --> 00:08:58.110 it comes 1 then there is equal to 1 6 00:08:55.680 --> 00:09:01.290 then it comes to then earlier we press 00:08:58.110 --> 00:09:04.950 alia then it comes 5 so this number 6 is 00:09:01.290 --> 00:09:07.650 more than 5 result Dutchman's so it's 00:09:04.950 --> 00:09:09.420 like check not only we made a dice 00:09:07.650 --> 00:09:17.760 rolling after you guys created this from 00:09:09.420 --> 00:09:20.820 scratch again click then action alia and 00:09:17.760 --> 00:09:24.090 shows who wins aliens then click again 00:09:20.820 --> 00:09:27.240 click again click ducks again here 00:09:24.090 --> 00:09:30.270 earlier and result here you go duck she 00:09:27.240 --> 00:09:31.890 wins again there are two numbers equal 00:09:30.270 --> 00:09:32.640 they are two numbers equal then mesh 00:09:31.890 --> 00:09:35.160 right then 00:09:32.640 --> 00:09:42.860 the ties I got it and it's all your data 00:09:35.160 --> 00:09:45.530 disturb my sister all right very cool 00:09:42.860 --> 00:09:48.510 the second app we have is from Abigail 00:09:45.530 --> 00:09:49.980 unfortunately Abigail's audio isn't 00:09:48.510 --> 00:09:52.740 working so she can't speak with us 00:09:49.980 --> 00:09:54.630 Abigail's from Vermont and she took our 00:09:52.740 --> 00:09:56.640 magic 8-ball app which was a very very 00:09:54.630 --> 00:10:00.630 simple app and made something much more 00:09:56.640 --> 00:10:03.840 complicated she made six different or 00:10:00.630 --> 00:10:06.660 seven different six different games only 00:10:03.840 --> 00:10:10.890 one Yara or fuzzy are there any of these 00:10:06.660 --> 00:10:14.310 you want to try Yara go ahead I play 00:10:10.890 --> 00:10:16.350 tic-tac-toe excellent I'm not not that 00:10:14.310 --> 00:10:17.360 Jerry tic-tac-toe is the one she hasn't 00:10:16.350 --> 00:10:20.550 finished yet 00:10:17.360 --> 00:10:23.550 okay it's the only one I tried before it 00:10:20.550 --> 00:10:24.720 doesn't work yes you are the truth or 00:10:23.550 --> 00:10:29.430 dare yes 00:10:24.720 --> 00:10:33.120 okay let's try two three all right Yara 00:10:29.430 --> 00:10:38.010 do you want on truth or dare I'll do a 00:10:33.120 --> 00:10:43.820 truth all right let's go Sofia you want 00:10:38.010 --> 00:10:43.820 to click I'm nervous oh gosh 00:10:48.870 --> 00:10:54.420 it happens okay just because you're 00:10:52.180 --> 00:11:00.459 alive of 10,000 people you have a 00:10:54.420 --> 00:11:02.230 question from Yara so there's another 00:11:00.459 --> 00:11:04.600 one of these apps is the cursor maze 00:11:02.230 --> 00:11:07.390 check this out Sofia has wanted to play 00:11:04.600 --> 00:11:09.580 this all morning so this is a cursor 00:11:07.390 --> 00:11:12.160 maze app where you need to control the 00:11:09.580 --> 00:11:15.339 mouse to get from the start to finish 00:11:12.160 --> 00:11:18.600 without touching any of the blocks so 00:11:15.339 --> 00:11:22.600 she has to move the mouse very carefully 00:11:18.600 --> 00:11:25.540 and it gets harder than easy yeah and 00:11:22.600 --> 00:11:27.850 it's really simple after this I don't 00:11:25.540 --> 00:11:33.220 know this is one out of six apps and 00:11:27.850 --> 00:11:36.820 then you have to click next level right 00:11:33.220 --> 00:11:39.550 this is fenomena Thank You Abigail for 00:11:36.820 --> 00:11:40.300 sharing that app Thank You Abigail yeah 00:11:39.550 --> 00:11:42.070 thank you 00:11:40.300 --> 00:11:46.290 you want to play an applause sound for 00:11:42.070 --> 00:11:50.020 both Abigail I'm - for their apps yes 00:11:46.290 --> 00:11:52.810 sorry you were on mute alright so for 00:11:50.020 --> 00:11:55.329 today our word of the day is variable a 00:11:52.810 --> 00:11:57.820 variable is a way to store hold 00:11:55.329 --> 00:11:59.940 information that can change you may be 00:11:57.820 --> 00:12:03.399 familiar with variables from math class 00:11:59.940 --> 00:12:06.250 like in that class when you say X equals 00:12:03.399 --> 00:12:08.620 5 X is a variable and it holds the 00:12:06.250 --> 00:12:10.660 number value 5 but variables and 00:12:08.620 --> 00:12:13.089 programming are different in two key 00:12:10.660 --> 00:12:15.370 ways first of all and programming and 00:12:13.089 --> 00:12:18.339 computer science valuables can change so 00:12:15.370 --> 00:12:20.829 X can start like a 5 but then it can 00:12:18.339 --> 00:12:23.320 become a 6 or a 7 or an 8 it doesn't 00:12:20.829 --> 00:12:24.820 stay the same the second thing is 00:12:23.320 --> 00:12:26.740 valuables and computer science can 00:12:24.820 --> 00:12:29.230 change can hold many different types of 00:12:26.740 --> 00:12:30.610 values they can be numbers they can have 00:12:29.230 --> 00:12:33.220 words or even more complicated 00:12:30.610 --> 00:12:35.620 information now why would we use a 00:12:33.220 --> 00:12:37.570 variable anytime a computer program 00:12:35.620 --> 00:12:39.640 wants to keep track of anything because 00:12:37.570 --> 00:12:41.649 it's the variables basically act like 00:12:39.640 --> 00:12:43.630 its memory like to remember the score 00:12:41.649 --> 00:12:45.550 and a theme or to remember the names of 00:12:43.630 --> 00:12:47.620 the players or anytime you type 00:12:45.550 --> 00:12:50.589 something in an app the app remembers it 00:12:47.620 --> 00:12:52.310 in America now we're going to see 00:12:50.589 --> 00:12:55.190 variables in action with health 00:12:52.310 --> 00:12:57.320 Yara so we're gonna switch to gallery 00:12:55.190 --> 00:12:59.660 view to see all the students on the 00:12:57.320 --> 00:13:02.540 screen and I want every student on the 00:12:59.660 --> 00:13:06.460 screen including fuzzy and Yara to all 00:13:02.540 --> 00:13:10.460 the variables your basic variable and 00:13:06.460 --> 00:13:12.200 each variable has a name so yeah we can 00:13:10.460 --> 00:13:13.420 see your names on the screen so Yara 00:13:12.200 --> 00:13:17.420 what's your name 00:13:13.420 --> 00:13:20.510 it's Yara Yara so that's the name of 00:13:17.420 --> 00:13:22.790 your variable so each file gets assigned 00:13:20.510 --> 00:13:25.580 a value so I'd like you each to pick a 00:13:22.790 --> 00:13:27.200 number between 1 and 10 and to hold up 00:13:25.580 --> 00:13:28.970 your number up on the screen so we can 00:13:27.200 --> 00:13:31.540 see all the numbers assigned to all the 00:13:28.970 --> 00:13:31.540 different variables 00:13:32.529 --> 00:13:35.720 alright so Yara what number are you 00:13:35.150 --> 00:13:39.710 ships 00:13:35.720 --> 00:13:44.570 storing seven you're seven so you could 00:13:39.710 --> 00:13:46.339 say that Yara equals seven so now Jana 00:13:44.570 --> 00:13:47.810 I'm gonna ask you to change your value 00:13:46.339 --> 00:13:49.540 and so when I do you can like shimmy 00:13:47.810 --> 00:13:52.250 your hands when you get a new okay 00:13:49.540 --> 00:13:54.410 everybody else keep your numbers up and 00:13:52.250 --> 00:13:57.620 I want to make a number that combines 00:13:54.410 --> 00:14:00.880 the numbers in the variables Owen and 00:13:57.620 --> 00:14:03.350 Evelyn so we're gonna highlight Owen 00:14:00.880 --> 00:14:08.650 that's Owen Owen what number are you 00:14:03.350 --> 00:14:11.120 showing that's a two and then Evelyn and 00:14:08.650 --> 00:14:14.089 Evelyn I think is showing a three so 00:14:11.120 --> 00:14:19.520 y'all I want to say Yara equals Owen 00:14:14.089 --> 00:14:22.040 plus Evelyn oh so you're already a five 00:14:19.520 --> 00:14:24.800 you changed from a seven to five so when 00:14:22.040 --> 00:14:26.630 we say yarn ankles Owen Plus Evelyn you 00:14:24.800 --> 00:14:29.180 set one variable to the value of two 00:14:26.630 --> 00:14:30.860 other variables now Owen and Evelyn can 00:14:29.180 --> 00:14:33.200 you both change your numbers pick a 00:14:30.860 --> 00:14:39.010 number between one and five a different 00:14:33.200 --> 00:14:41.570 number all right and Yara can you 00:14:39.010 --> 00:14:44.270 reevaluate the are equal Owen Plus 00:14:41.570 --> 00:14:47.330 Evelyn all right so you see now Owen is 00:14:44.270 --> 00:14:50.450 a four and Evelyn is a 2 so Y became a 00:14:47.330 --> 00:14:57.529 six now I want to ask Evelyn your number 00:14:50.450 --> 00:14:59.480 changed did your name change no no and 00:14:57.529 --> 00:15:01.970 that's that's right because with 00:14:59.480 --> 00:15:03.770 variables the value of a variable can 00:15:01.970 --> 00:15:05.329 keep changing a computer program can 00:15:03.770 --> 00:15:07.790 change it all the time then 00:15:05.329 --> 00:15:09.170 the variables stays the same all right 00:15:07.790 --> 00:15:11.420 you can put your hands down we're gonna 00:15:09.170 --> 00:15:13.779 do something totally different now we're 00:15:11.420 --> 00:15:15.920 going to be variables in a different way 00:15:13.779 --> 00:15:17.629 what we're going to do is show how 00:15:15.920 --> 00:15:19.489 variables health computer programs 00:15:17.629 --> 00:15:21.230 remember and to do this we're going to 00:15:19.489 --> 00:15:24.739 have yara act like a computer program 00:15:21.230 --> 00:15:26.809 for ordering a food basket okay 00:15:24.739 --> 00:15:28.730 yara since you're an actress you're 00:15:26.809 --> 00:15:30.739 gonna act like a computer who can't 00:15:28.730 --> 00:15:33.910 remember anything without saving 00:15:30.739 --> 00:15:35.149 information and we want a great role yet 00:15:33.910 --> 00:15:37.040 mm-hm 00:15:35.149 --> 00:15:38.689 we we wanted to act like you have no 00:15:37.040 --> 00:15:40.730 memory without the help of your 00:15:38.689 --> 00:15:42.439 variables and all the students you see 00:15:40.730 --> 00:15:44.540 on screen are gonna be your variables 00:15:42.439 --> 00:15:46.910 they can save information for you is 00:15:44.540 --> 00:15:50.739 that sound okay that sounds great right 00:15:46.910 --> 00:15:52.999 did you remember anything I just said no 00:15:50.739 --> 00:15:55.999 actually you need to remember what I 00:15:52.999 --> 00:15:57.319 said but once you're running the 00:15:55.999 --> 00:16:00.170 computer program you should forget it 00:15:57.319 --> 00:16:02.720 all great got it Sofia here is gonna 00:16:00.170 --> 00:16:05.119 order a fruit basket from Yara and Yara 00:16:02.720 --> 00:16:07.519 each time Sofia asks for new fruit to 00:16:05.119 --> 00:16:09.799 add to the basket I want you to ask one 00:16:07.519 --> 00:16:11.449 of the student variables on screen to 00:16:09.799 --> 00:16:13.759 save that piece of information by 00:16:11.449 --> 00:16:16.519 writing it down so you can say for 00:16:13.759 --> 00:16:19.399 example Naomi please save an apple and 00:16:16.519 --> 00:16:20.480 Naomi will write it down and while 00:16:19.399 --> 00:16:22.639 you're doing this 00:16:20.480 --> 00:16:24.529 Fuzzy's you're going to be a counter 00:16:22.639 --> 00:16:27.049 variable I want you to start with the 00:16:24.529 --> 00:16:29.089 number zero and then each time Sophia 00:16:27.049 --> 00:16:31.669 asks for a new fruit add one to your 00:16:29.089 --> 00:16:34.249 number so you'll show how much fruit 00:16:31.669 --> 00:16:39.579 Sophie has asked for I've been packing 00:16:34.249 --> 00:16:44.480 are you ready yeah all right Sophia go I 00:16:39.579 --> 00:16:47.689 like apple please stam yo can you 00:16:44.480 --> 00:16:52.699 remember an apple it's the same I was 00:16:47.689 --> 00:16:56.299 going to write this down next I like an 00:16:52.699 --> 00:17:00.220 orange Seth can you do me a favor and 00:16:56.299 --> 00:17:05.120 remember orange and write it down Seth I 00:17:00.220 --> 00:17:08.809 want a pear a new shot can you please 00:17:05.120 --> 00:17:13.429 remember pear for me can I have a grape 00:17:08.809 --> 00:17:18.079 please Naomi can you remember grapefruit 00:17:13.429 --> 00:17:19.300 for me please I'd like a Kiwi - all 00:17:18.079 --> 00:17:23.810 right Serena 00:17:19.300 --> 00:17:27.830 will you write down QE for me and lastly 00:17:23.810 --> 00:17:32.300 I would like a banana okay Amir can you 00:17:27.830 --> 00:17:34.130 remember banana for me please all right 00:17:32.300 --> 00:17:35.930 before we make this fruit basket how 00:17:34.130 --> 00:17:39.230 much is this fruit order going to cost 00:17:35.930 --> 00:17:41.840 let's say it's $2 per piece of fruit how 00:17:39.230 --> 00:17:43.670 much should Sophia pay let's do a poll 00:17:41.840 --> 00:17:46.100 from our audience all the folks on zoom' 00:17:43.670 --> 00:17:48.530 were not on camera you can look at fuzzy 00:17:46.100 --> 00:17:50.390 the counter and we are going to ask how 00:17:48.530 --> 00:17:54.710 much does Sophia's fruit basket cost is 00:17:50.390 --> 00:17:57.770 it $12 or is it two dollars per fruit or 00:17:54.710 --> 00:18:00.020 is it two times fuzzy or is it all of 00:17:57.770 --> 00:18:01.820 the above all of the above God said 00:18:00.020 --> 00:18:05.450 don't tell us the answers people are 00:18:01.820 --> 00:18:07.220 actually filling out the poll but all 00:18:05.450 --> 00:18:09.050 right almost half the students have 00:18:07.220 --> 00:18:12.440 already voted fuzzy sort of gave away 00:18:09.050 --> 00:18:13.870 possibly gave away the answer might not 00:18:12.440 --> 00:18:16.010 be right we'll see 00:18:13.870 --> 00:18:17.360 all right let's share the poll results 00:18:16.010 --> 00:18:20.150 of what students guessed 00:18:17.360 --> 00:18:23.330 all right before it was almost a dead 00:18:20.150 --> 00:18:26.000 heat but we have now 70% of you guessed 00:18:23.330 --> 00:18:28.490 all of the above and that's correct so 00:18:26.000 --> 00:18:31.250 the food basket is gonna cost $12 00:18:28.490 --> 00:18:33.140 because it's $2 per fruits and Fuzzy's 00:18:31.250 --> 00:18:36.110 been the food counter counting how many 00:18:33.140 --> 00:18:39.140 think Sophia's ordered now Yara dear 00:18:36.110 --> 00:18:42.440 remember Sophia's fruit order I don't 00:18:39.140 --> 00:18:43.880 I'm not sure anybody remembers it but 00:18:42.440 --> 00:18:45.470 since you're a computer program you 00:18:43.880 --> 00:18:48.200 don't need to have your own memory your 00:18:45.470 --> 00:18:49.880 variables save that for you so if you'd 00:18:48.200 --> 00:18:51.470 like you can now ask your variables to 00:18:49.880 --> 00:18:55.790 show their information up on the screen 00:18:51.470 --> 00:18:59.720 so you can see it yes please well my 00:18:55.790 --> 00:19:01.400 variables share what we've stored so can 00:18:59.720 --> 00:19:12.760 all the variables hold up your pieces of 00:19:01.400 --> 00:19:17.750 paper so Yara can see see an apple pear 00:19:12.760 --> 00:19:20.330 grapefruit keep holding it up so y'all 00:19:17.750 --> 00:19:22.400 can you now from what you see make the 00:19:20.330 --> 00:19:26.080 fruit basket that that's Sophia ordered 00:19:22.400 --> 00:19:26.080 thrust yes 00:19:28.880 --> 00:19:35.900 I see an apple a pear a grapefruit okay 00:19:33.260 --> 00:19:41.750 so I have some fruit with me I have my 00:19:35.900 --> 00:19:49.820 apple have my kiwi I'm going to draw a 00:19:41.750 --> 00:19:54.670 pear I have my grapefruit and I'm gonna 00:19:49.820 --> 00:19:54.670 do a nice round pear for everybody 00:19:55.570 --> 00:20:01.580 artist so yo can you now hand the bowl 00:19:59.480 --> 00:20:03.350 of fruit to Sophia together we want to 00:20:01.580 --> 00:20:09.400 test out a really new zoom feature 00:20:03.350 --> 00:20:09.400 called zoom fruit delivery gladly 00:20:13.450 --> 00:20:26.840 Sophia thank you everybody for the 00:20:25.220 --> 00:20:29.450 variables for the healthy determined 00:20:26.840 --> 00:20:31.580 helping our food delivery program 00:20:29.450 --> 00:20:33.680 remember her fruit order so to recap 00:20:31.580 --> 00:20:35.570 first we use variables to store numbers 00:20:33.680 --> 00:20:38.330 and we showed how the values changed and 00:20:35.570 --> 00:20:40.310 next we use variables to store text so 00:20:38.330 --> 00:20:42.890 the computer er could remember how to 00:20:40.310 --> 00:20:44.660 prepare a food order that we're gonna 00:20:42.890 --> 00:20:45.800 explore more about it valuable soon but 00:20:44.660 --> 00:20:48.050 first let's learn a little bit more 00:20:45.800 --> 00:20:49.970 about God so Yara you're our third 00:20:48.050 --> 00:20:52.610 special guest to play our lightning 00:20:49.970 --> 00:20:54.170 round game we're gonna put 60 seconds on 00:20:52.610 --> 00:20:57.110 the clock and Sophia's going to keep 00:20:54.170 --> 00:20:59.600 score actually on an app she Scott is 00:20:57.110 --> 00:21:00.830 gonna keep score and and your goal is to 00:20:59.600 --> 00:21:03.440 get through as many questions as 00:21:00.830 --> 00:21:06.350 possible and beat our current score of 00:21:03.440 --> 00:21:08.030 nine nine questions which were answered 00:21:06.350 --> 00:21:10.040 by Sal Khan so you want to make the 00:21:08.030 --> 00:21:13.940 comments but also make it fast 00:21:10.040 --> 00:21:15.650 I've got it all right Sophia go umm 00:21:13.940 --> 00:21:20.360 country you have all you want to visit 00:21:15.650 --> 00:21:22.450 but haven't Greece advocated what did 00:21:20.360 --> 00:21:29.330 you want to be when you grew up a 00:21:22.450 --> 00:21:33.020 historian favorite drink um my go-to 00:21:29.330 --> 00:21:35.420 black tea my side ask something you 00:21:33.020 --> 00:21:41.360 can't ever eat no matter how many people 00:21:35.420 --> 00:21:42.020 love it sardines the last person you hug 00:21:41.360 --> 00:21:45.440 know 00:21:42.020 --> 00:21:46.160 living with you not living with me oh my 00:21:45.440 --> 00:21:50.510 goodness 00:21:46.160 --> 00:21:55.940 my friend Jacqueline 30 seconds your 00:21:50.510 --> 00:21:58.190 favorite smell um I love just any 00:21:55.940 --> 00:21:59.840 kitchen smell I love this smell of the 00:21:58.190 --> 00:22:00.590 kitchen being used because it means that 00:21:59.840 --> 00:22:02.600 we're about to eat 00:22:00.590 --> 00:22:07.100 what were your hobbies when you were a 00:22:02.600 --> 00:22:11.210 kid I loved everything from exploring 00:22:07.100 --> 00:22:20.540 and I was in karate and I would rock 00:22:11.210 --> 00:22:23.750 climb what was her score seven so that 00:22:20.540 --> 00:22:25.070 was variable so close thank you so much 00:22:23.750 --> 00:22:30.560 and we're gonna play a little applause 00:22:25.070 --> 00:22:32.360 sound all right so I have a few more 00:22:30.560 --> 00:22:34.070 questions for both fuzzy and yah for 00:22:32.360 --> 00:22:36.260 each of you how did you become a 00:22:34.070 --> 00:22:38.150 standout in your field and especially in 00:22:36.260 --> 00:22:44.840 a field for both of you that has a lack 00:22:38.150 --> 00:22:50.000 of diversity and representation you want 00:22:44.840 --> 00:22:53.860 me to go well yeah go ahead fuzzy so I 00:22:50.000 --> 00:22:56.330 don't think it was intentional when I 00:22:53.860 --> 00:22:59.960 I've always thought that diversity was 00:22:56.330 --> 00:23:01.490 very important and I'd like to I tried 00:22:59.960 --> 00:23:05.660 to work in companies that were very 00:23:01.490 --> 00:23:07.520 diverse I find that having working on 00:23:05.660 --> 00:23:11.090 products that are user facing it's 00:23:07.520 --> 00:23:14.270 really important to build stuff that a 00:23:11.090 --> 00:23:16.040 lot of people can use so I try to 00:23:14.270 --> 00:23:19.220 surround myself with a lot of diverse 00:23:16.040 --> 00:23:21.410 people and that would be able to build 00:23:19.220 --> 00:23:23.060 things that you know have have different 00:23:21.410 --> 00:23:24.560 viewpoints one of the things that I 00:23:23.060 --> 00:23:27.040 remember for example with sheets is 00:23:24.560 --> 00:23:30.920 having someone on the team that was 00:23:27.040 --> 00:23:32.750 basically hearing-impaired originally 00:23:30.920 --> 00:23:34.790 impaired helped us empathize more and 00:23:32.750 --> 00:23:37.280 build products that met the needs of 00:23:34.790 --> 00:23:39.730 visually impaired more so diversity was 00:23:37.280 --> 00:23:42.170 really important for us there and how 00:23:39.730 --> 00:23:44.150 Hollywood doesn't have nearly as much 00:23:42.170 --> 00:23:47.570 diversity as a lot of people who wish it 00:23:44.150 --> 00:23:49.610 did yeah um well I'm grateful because I 00:23:47.570 --> 00:23:51.410 got into this because I love to read I'm 00:23:49.610 --> 00:23:54.470 sorry till I actually didn't watch much 00:23:51.410 --> 00:23:55.230 television until I was 13 we'd watch an 00:23:54.470 --> 00:23:58.350 hour 00:23:55.230 --> 00:23:59.850 on Saturdays mouths about it so it's fun 00:23:58.350 --> 00:24:01.919 for me to be a television actor who 00:23:59.850 --> 00:24:04.410 didn't watch TV but it was because I 00:24:01.919 --> 00:24:06.540 love telling stories and so a lot of 00:24:04.410 --> 00:24:08.040 what I do is when I'd get a script or 00:24:06.540 --> 00:24:10.950 have to go audition it was really about 00:24:08.040 --> 00:24:13.530 what story are we telling and I think 00:24:10.950 --> 00:24:15.480 similarly to fuzzy I found places in 00:24:13.530 --> 00:24:17.309 which diversity was really valued so 00:24:15.480 --> 00:24:19.200 whether that be on blackish or even now 00:24:17.309 --> 00:24:20.910 I'm grown ish it was something where I 00:24:19.200 --> 00:24:22.350 didn't even have to be a conversation 00:24:20.910 --> 00:24:24.750 because everyone knew how important it 00:24:22.350 --> 00:24:27.690 was not only for a great work 00:24:24.750 --> 00:24:29.809 environment but just for a great final 00:24:27.690 --> 00:24:32.669 product - and we've had the best time 00:24:29.809 --> 00:24:35.190 and now we are in the role of making 00:24:32.669 --> 00:24:37.260 television and that has been so much fun 00:24:35.190 --> 00:24:40.380 because we get to bring to life stories 00:24:37.260 --> 00:24:42.120 that I'm just discovering or learning 00:24:40.380 --> 00:24:44.100 about and we're constantly meeting new 00:24:42.120 --> 00:24:46.590 people who have incredible things to 00:24:44.100 --> 00:24:48.510 share and why do you think it's 00:24:46.590 --> 00:24:51.059 important to increase representation of 00:24:48.510 --> 00:24:54.059 women or people of color and fields such 00:24:51.059 --> 00:24:55.679 as technology it's always been really 00:24:54.059 --> 00:24:57.090 important to me I had the privilege of 00:24:55.679 --> 00:24:58.590 going to an all-girls school and I 00:24:57.090 --> 00:25:01.620 remember what that did for me because I 00:24:58.590 --> 00:25:03.690 at no point did I process like oh the 00:25:01.620 --> 00:25:05.070 sciences weren't meant for me or stem 00:25:03.690 --> 00:25:06.900 wasn't meant for me because I was 00:25:05.070 --> 00:25:11.010 surrounded by people who proved that it 00:25:06.900 --> 00:25:13.290 was but I think just to Fuzzy's point we 00:25:11.010 --> 00:25:15.570 need diverse teams of people in order to 00:25:13.290 --> 00:25:18.120 make products that reflect what our 00:25:15.570 --> 00:25:19.350 world looks like and I think so much so 00:25:18.120 --> 00:25:21.990 many people have so much to contribute 00:25:19.350 --> 00:25:23.520 that it's important that we decrease the 00:25:21.990 --> 00:25:28.049 barriers that just stop people from 00:25:23.520 --> 00:25:30.120 being able to contribute study computer 00:25:28.049 --> 00:25:32.549 science while you're at Harvard or high 00:25:30.120 --> 00:25:34.320 school either does it's so funny that 00:25:32.549 --> 00:25:39.360 you say that I'm about to sign up for a 00:25:34.320 --> 00:25:40.169 class for my summer class I haven't 00:25:39.360 --> 00:25:42.510 decided yet 00:25:40.169 --> 00:25:44.490 I have friends so a lot of my actual all 00:25:42.510 --> 00:25:46.169 my girlfriends I think I've taken a 00:25:44.490 --> 00:25:48.780 computer science class and I'm beyond 00:25:46.169 --> 00:25:54.179 I'm the odd person out right now so I'm 00:25:48.780 --> 00:25:55.770 taking more suggestions I'm speaking of 00:25:54.179 --> 00:25:57.780 diversity by the way one thing that's 00:25:55.770 --> 00:26:00.960 unique is all of us right here Sophia 00:25:57.780 --> 00:26:05.640 myself fuzzy and Y are all for Iranian 00:26:00.960 --> 00:26:07.410 Americans the way nice t-shirt huh D 00:26:05.640 --> 00:26:10.170 yeah I'm wearing an image 00:26:07.410 --> 00:26:11.700 t-shirt because fuzzy and I are also 00:26:10.170 --> 00:26:14.180 immigrants as well 00:26:11.700 --> 00:26:16.980 Oh Thank You Evelyn for showing a heart 00:26:14.180 --> 00:26:18.720 so yeah we have some questions from our 00:26:16.980 --> 00:26:20.490 student panelists as well one of our 00:26:18.720 --> 00:26:26.400 producers at Kyra is going to introduce 00:26:20.490 --> 00:26:28.800 these students hi ara so we have two 00:26:26.400 --> 00:26:30.510 questions one friend a ha who has a 00:26:28.800 --> 00:26:33.420 question about girls and achievements 00:26:30.510 --> 00:26:35.520 and they hum going to onion you what 00:26:33.420 --> 00:26:37.080 suggestions do you have for girls to 00:26:35.520 --> 00:26:39.000 stay confident in whatever field they 00:26:37.080 --> 00:26:41.430 choose and to become leaders in their 00:26:39.000 --> 00:26:43.710 community yeah hi I know that's a 00:26:41.430 --> 00:26:46.080 wonderful question I think what I've 00:26:43.710 --> 00:26:49.410 always relied on is I always say my 00:26:46.080 --> 00:26:51.780 support network and so for me that's my 00:26:49.410 --> 00:26:54.450 family I come from a really cool 00:26:51.780 --> 00:26:56.610 matriarchy of women but that's also my 00:26:54.450 --> 00:26:58.500 chosen family my friends my professors 00:26:56.610 --> 00:27:00.120 and teachers and the reason I say that 00:26:58.500 --> 00:27:01.980 is that there's so much happening in the 00:27:00.120 --> 00:27:03.720 world that often times you can run into 00:27:01.980 --> 00:27:05.880 barriers that try and convince you that 00:27:03.720 --> 00:27:07.650 this is an ear space but that's why I 00:27:05.880 --> 00:27:09.510 rely on the people around me not only 00:27:07.650 --> 00:27:10.830 for that confidence boost but to 00:27:09.510 --> 00:27:13.440 constantly get better at whatever I'm 00:27:10.830 --> 00:27:15.000 trying to achieve but I think having 00:27:13.440 --> 00:27:17.420 those people around me have helped me 00:27:15.000 --> 00:27:21.630 through every step of the way 00:27:17.420 --> 00:27:25.380 and to always be open to learning thank 00:27:21.630 --> 00:27:27.840 you so much and we also have our last 00:27:25.380 --> 00:27:29.100 question from Amir so Amir I'm going to 00:27:27.840 --> 00:27:32.400 unmute you he had a question about 00:27:29.100 --> 00:27:34.170 achievement yeah what drives you to 00:27:32.400 --> 00:27:35.390 achieve your goals and motivates you to 00:27:34.170 --> 00:27:38.550 never give up 00:27:35.390 --> 00:27:39.660 that's a great question Amir and I've 00:27:38.550 --> 00:27:41.340 been thinking about that a lot 00:27:39.660 --> 00:27:43.700 especially now that we're all at home 00:27:41.340 --> 00:27:46.590 and life looks very different right now 00:27:43.700 --> 00:27:48.150 but I think what's been important for my 00:27:46.590 --> 00:27:50.520 entire family are finding ways to 00:27:48.150 --> 00:27:52.950 continue to be of service to my many 00:27:50.520 --> 00:27:54.450 communities not only the communities 00:27:52.950 --> 00:27:56.400 that my family are part of being black 00:27:54.450 --> 00:27:58.920 in Iranian but just the many communities 00:27:56.400 --> 00:28:01.410 that I think support us and so sometimes 00:27:58.920 --> 00:28:03.330 that small like on blackish being able 00:28:01.410 --> 00:28:05.670 to tell really great stories that 00:28:03.330 --> 00:28:07.440 hopefully spread a point of view and 00:28:05.670 --> 00:28:09.960 sometimes that's trying to figure out 00:28:07.440 --> 00:28:12.720 how I can use an opportunity to give 00:28:09.960 --> 00:28:15.090 back and how I can support other people 00:28:12.720 --> 00:28:16.860 but that's always helped motivate me 00:28:15.090 --> 00:28:18.120 because otherwise if you're not doing if 00:28:16.860 --> 00:28:19.440 you're just doing it for yourself 00:28:18.120 --> 00:28:21.330 sometimes it's hard to find the 00:28:19.440 --> 00:28:22.860 motivation but when you do 00:28:21.330 --> 00:28:24.240 for the betterment of so many people 00:28:22.860 --> 00:28:25.770 around you then I think that's what 00:28:24.240 --> 00:28:27.990 convinces me to get up when I'm not 00:28:25.770 --> 00:28:32.610 trying to accomplish something to go to 00:28:27.990 --> 00:28:36.210 go do it thank you you're on thanks Amir 00:28:32.610 --> 00:28:37.890 yeah thank you thank you so much and 00:28:36.210 --> 00:28:40.620 Yara thank you for joining us today to 00:28:37.890 --> 00:28:42.450 share your story we're all a part of 00:28:40.620 --> 00:28:44.790 Yara soon so can we switch to gallery 00:28:42.450 --> 00:28:47.010 view for the audience so all of our 00:28:44.790 --> 00:28:48.810 students can wave goodbye to Yara and so 00:28:47.010 --> 00:28:55.680 if you can you play an applause thank 00:28:48.810 --> 00:28:59.240 you thank you my first computer science 00:28:55.680 --> 00:29:01.590 class thank you so much thank you 00:28:59.240 --> 00:29:03.990 alright fuzzy let's chat a little bit 00:29:01.590 --> 00:29:05.460 more though bye bye Yara so fuzzy we're 00:29:03.990 --> 00:29:07.350 gonna chat a little bit more about your 00:29:05.460 --> 00:29:09.450 background and your work at Google with 00:29:07.350 --> 00:29:11.400 Google Spreadsheets while fuzzy and I 00:29:09.450 --> 00:29:13.530 chats if you have questions don't forget 00:29:11.400 --> 00:29:15.660 to send them in at code.org slash 00:29:13.530 --> 00:29:18.660 questions you have about two minutes if 00:29:15.660 --> 00:29:20.880 you want to submit a question so fuzzy 00:29:18.660 --> 00:29:22.320 how old were you when you began learning 00:29:20.880 --> 00:29:24.210 how to code and how did you get into it 00:29:22.320 --> 00:29:27.360 what's your story about how you got into 00:29:24.210 --> 00:29:31.110 this I don't even remember how old I was 00:29:27.360 --> 00:29:34.560 because I was a as you can tell I'm I'm 00:29:31.110 --> 00:29:37.650 not a young young young one like you all 00:29:34.560 --> 00:29:40.050 so back then I was actually history 00:29:37.650 --> 00:29:42.420 major in college and when I graduated I 00:29:40.050 --> 00:29:45.540 didn't I was having a hard time finding 00:29:42.420 --> 00:29:47.970 a job so I ended up selling life 00:29:45.540 --> 00:29:50.100 insurance for a while then real estate 00:29:47.970 --> 00:29:52.320 that my wife said wouldn't it be great 00:29:50.100 --> 00:29:54.090 if we open up a Subway sandwich shop and 00:29:52.320 --> 00:29:56.940 worked all day and all night together 00:29:54.090 --> 00:29:59.490 and I said sure we tried that for a 00:29:56.940 --> 00:30:01.860 while it wasn't only it wasn't until my 00:29:59.490 --> 00:30:03.600 30s when I actually started really 00:30:01.860 --> 00:30:06.350 coding I had a job in the banking 00:30:03.600 --> 00:30:08.780 industry and was coding there and 00:30:06.350 --> 00:30:11.340 teaching myself most of the coding and 00:30:08.780 --> 00:30:14.220 that's when I came up with the idea of 00:30:11.340 --> 00:30:17.460 taking sell spreadsheets and converting 00:30:14.220 --> 00:30:20.760 him into Web Apps and the idea with the 00:30:17.460 --> 00:30:23.220 help of a lot of amazing people we sold 00:30:20.760 --> 00:30:26.430 that product to Google and it became 00:30:23.220 --> 00:30:30.230 Google sheets so it wasn't like I wasn't 00:30:26.430 --> 00:30:32.460 coding as a young kid like everyone here 00:30:30.230 --> 00:30:33.880 that's really kind of what most people 00:30:32.460 --> 00:30:36.100 envision that people 00:30:33.880 --> 00:30:37.600 start companies and sell them you know 00:30:36.100 --> 00:30:39.429 our whiz kids who learn when they're 00:30:37.600 --> 00:30:40.750 like really young and then sell their 00:30:39.429 --> 00:30:43.000 startup when they're like right out of 00:30:40.750 --> 00:30:45.190 school or something but you'd between 00:30:43.000 --> 00:30:47.650 being an insurance salesperson and real 00:30:45.190 --> 00:30:50.320 estate sales persons the sandwich sales 00:30:47.650 --> 00:30:52.570 person make great sandwiches to make 00:30:50.320 --> 00:30:54.280 great sandwiches yeah it's pretty 00:30:52.570 --> 00:30:56.679 amazing that Google Spreadsheets was 00:30:54.280 --> 00:30:59.020 basically an acquisition by Google of a 00:30:56.679 --> 00:31:02.080 company made by a sandwich style 00:30:59.020 --> 00:31:03.280 sandwich shop owner and by the way if 00:31:02.080 --> 00:31:05.049 you think about it there's a connection 00:31:03.280 --> 00:31:07.539 between spreadsheets and our earlier 00:31:05.049 --> 00:31:10.390 activity when we were all in a grid the 00:31:07.539 --> 00:31:11.980 students were in a grid each one of us 00:31:10.390 --> 00:31:14.500 was a variable just like a spreadsheet 00:31:11.980 --> 00:31:16.539 stores a value in each of the cells in 00:31:14.500 --> 00:31:20.169 its grid and each cell in a spreadsheet 00:31:16.539 --> 00:31:22.450 has a name like a 1 or B 1 or C 2 just 00:31:20.169 --> 00:31:24.100 like a variable and in fact I often tell 00:31:22.450 --> 00:31:26.799 people if you've ever written a command 00:31:24.100 --> 00:31:28.270 in a spreadsheet using a formula like 00:31:26.799 --> 00:31:30.130 saying this cell is going to be the sum 00:31:28.270 --> 00:31:31.539 of this and that you've written one line 00:31:30.130 --> 00:31:35.740 of code and that's how you can start 00:31:31.539 --> 00:31:37.900 learning computer programming so now 00:31:35.740 --> 00:31:39.940 we're gonna go into the second sentence 00:31:37.900 --> 00:31:43.419 of today's class which is learning about 00:31:39.940 --> 00:31:46.360 how to use variables and games and so 00:31:43.419 --> 00:31:48.789 fuzzy Sophie and I are gonna use we're 00:31:46.360 --> 00:31:52.330 basically gonna use ku dog to modify a 00:31:48.789 --> 00:31:54.820 game using validus and I'm gonna change 00:31:52.330 --> 00:31:58.770 the screen share to just show code or 00:31:54.820 --> 00:31:58.770 game screen just one second 00:31:58.860 --> 00:32:04.360 all right can you see my screen yes I 00:32:02.140 --> 00:32:05.770 can it's wonderful thank you so for 00:32:04.360 --> 00:32:08.289 those of you who are not familiar we're 00:32:05.770 --> 00:32:10.059 in co.org sprite lab on the left-hand 00:32:08.289 --> 00:32:12.220 side is where the code will be running 00:32:10.059 --> 00:32:13.720 where we make our game on the right hand 00:32:12.220 --> 00:32:15.730 side is the code for this game and 00:32:13.720 --> 00:32:17.260 there's all these little commands and 00:32:15.730 --> 00:32:19.450 here in these different drawers that we 00:32:17.260 --> 00:32:20.740 can look at now this code is already 00:32:19.450 --> 00:32:23.049 been written and I'm not going to run 00:32:20.740 --> 00:32:24.880 through how it works what it does is it 00:32:23.049 --> 00:32:27.520 creates a bunch of these little players 00:32:24.880 --> 00:32:29.740 called sprites on the screen so it's got 00:32:27.520 --> 00:32:31.630 this little alien who's a good guy and 00:32:29.740 --> 00:32:34.030 then these purple aliens are bad guys in 00:32:31.630 --> 00:32:37.179 these coins and when you run up the Run 00:32:34.030 --> 00:32:39.970 button all these things float around and 00:32:37.179 --> 00:32:41.799 you can use the cursor keys to move the 00:32:39.970 --> 00:32:43.840 good alien that we control you can also 00:32:41.799 --> 00:32:46.470 use the cursor keys on a keyboard the 00:32:43.840 --> 00:32:48.509 arrow keys move the good 00:32:46.470 --> 00:32:50.360 the good little alien but what we wanted 00:32:48.509 --> 00:32:53.429 to do is when they're good little alien 00:32:50.360 --> 00:32:55.259 catches a coin we want to count the 00:32:53.429 --> 00:32:58.379 score so Sophia you're gonna do that 00:32:55.259 --> 00:33:02.580 using valuables and so we're up here and 00:32:58.379 --> 00:33:04.710 it says when a coin has been gotten by 00:33:02.580 --> 00:33:07.500 the good alien so what is the first 00:33:04.710 --> 00:33:11.039 thing we want to do so if you go into 00:33:07.500 --> 00:33:13.529 the sprites menu and the first thing you 00:33:11.039 --> 00:33:15.750 want to do is remove the point so bring 00:33:13.529 --> 00:33:18.750 out the remove block and then take out 00:33:15.750 --> 00:33:19.950 or change that to the coin actually no 00:33:18.750 --> 00:33:23.220 don't change that because that's gonna 00:33:19.950 --> 00:33:25.230 remove all the coins take that out take 00:33:23.220 --> 00:33:28.200 out this little block and go into the 00:33:25.230 --> 00:33:31.350 sprite menu and choose this sprite 00:33:28.200 --> 00:33:33.090 because if each removed the coins but 00:33:31.350 --> 00:33:35.429 all of them would go but you want to 00:33:33.090 --> 00:33:36.539 trim this just this right and now when 00:33:35.429 --> 00:33:38.519 you do this 00:33:36.539 --> 00:33:40.590 that's right that you get will disappear 00:33:38.519 --> 00:33:42.360 but what we also want to do is increase 00:33:40.590 --> 00:33:44.730 the score and at the start of the game 00:33:42.360 --> 00:33:48.210 we created a valuable score we set the 00:33:44.730 --> 00:33:53.549 score 2-0 so now what I want you do is 00:33:48.210 --> 00:33:57.259 to go into the variables section and set 00:33:53.549 --> 00:34:01.759 the score see it's a set score to 00:33:57.259 --> 00:34:01.759 personally not set score to change score 00:34:02.929 --> 00:34:08.040 change and then clear that I and change 00:34:06.269 --> 00:34:09.480 it to score and so we're gonna change 00:34:08.040 --> 00:34:12.569 the score by one you want to change it 00:34:09.480 --> 00:34:14.790 by one or by two let's leave it by one 00:34:12.569 --> 00:34:17.849 now that's good to stuck me when I was 00:34:14.790 --> 00:34:23.060 the counter exactly that's just like 00:34:17.849 --> 00:34:25.950 here now so if you hit the Run button as 00:34:23.060 --> 00:34:28.619 you're going around you can control the 00:34:25.950 --> 00:34:29.909 little you couldn't roll this little 00:34:28.619 --> 00:34:32.609 thing and it's catching these little 00:34:29.909 --> 00:34:34.740 coins and the coins are disappearing but 00:34:32.609 --> 00:34:36.000 we're not seeing the score so what we 00:34:34.740 --> 00:34:38.609 need to do is we actually need to 00:34:36.000 --> 00:34:42.000 display the score on screen so so if 00:34:38.609 --> 00:34:44.730 they go into this area of text the 00:34:42.000 --> 00:34:49.829 section that says text and bring out the 00:34:44.730 --> 00:34:54.839 print button and in there you want to 00:34:49.829 --> 00:34:57.810 type score but we want to combine the 00:34:54.839 --> 00:35:01.319 score the word score with the value in 00:34:57.810 --> 00:35:04.470 score so go into texting 00:35:01.319 --> 00:35:06.900 and bring out this join block and 00:35:04.470 --> 00:35:09.940 dropped it in there and inside the print 00:35:06.900 --> 00:35:14.559 instead of a little score block yeah and 00:35:09.940 --> 00:35:16.539 then join the the word score with the 00:35:14.559 --> 00:35:19.660 quotes around in the Kulin and then in 00:35:16.539 --> 00:35:20.890 the variables bring out the value score 00:35:19.660 --> 00:35:23.079 so now it's going to tell the story 00:35:20.890 --> 00:35:25.839 which time we get one of these things so 00:35:23.079 --> 00:35:27.849 now if we hit run I'm gonna play this 00:35:25.839 --> 00:35:30.249 this time I can run around and catch the 00:35:27.849 --> 00:35:32.950 coins and see I got a score of one no 00:35:30.249 --> 00:35:35.019 score to the score of three and so on 00:35:32.950 --> 00:35:37.390 now I want to use a different battle it 00:35:35.019 --> 00:35:39.819 looks fuzzy fuzzy you can also count 00:35:37.390 --> 00:35:42.130 these as well what I want to do next is 00:35:39.819 --> 00:35:43.749 actually make it so that our player gets 00:35:42.130 --> 00:35:46.089 smaller and smaller and the points get 00:35:43.749 --> 00:35:48.339 smaller and a harder to catch as we go 00:35:46.089 --> 00:35:49.900 along so what we need to do is go back 00:35:48.339 --> 00:35:52.089 to the start of the game and create a 00:35:49.900 --> 00:35:54.400 new variable we're going to create a new 00:35:52.089 --> 00:36:01.380 variable for the size of these so go 00:35:54.400 --> 00:36:05.140 into variables and say set I to and 00:36:01.380 --> 00:36:07.059 click on the eye and say rename this 00:36:05.140 --> 00:36:09.880 variable so we're going to change that 00:36:07.059 --> 00:36:15.420 to size the bargaining is going to be 00:36:09.880 --> 00:36:20.470 size all right and we're gonna set size 00:36:15.420 --> 00:36:27.609 can you drag out the number zero and set 00:36:20.470 --> 00:36:29.319 the size to 50 all right so this is 00:36:27.609 --> 00:36:31.869 gonna be the counter for what our size 00:36:29.319 --> 00:36:34.269 should start to ask but what we want to 00:36:31.869 --> 00:36:36.489 do is now every time you capture a coin 00:36:34.269 --> 00:36:38.859 you want to change this change all the 00:36:36.489 --> 00:36:43.059 sprites to that size so now go into 00:36:38.859 --> 00:36:47.259 actions actions and see where it says 00:36:43.059 --> 00:36:50.079 set size 250 bring that out and so when 00:36:47.259 --> 00:36:52.869 a coin is caught change this coin size 00:36:50.079 --> 00:36:58.900 but instead of choosing 50 you pull out 00:36:52.869 --> 00:37:01.900 that 50 and then go into very ease and 00:36:58.900 --> 00:37:03.880 pull out the size value now size is 00:37:01.900 --> 00:37:05.259 going to keep this size at 50 so before 00:37:03.880 --> 00:37:08.559 we do that we actually want to reduce 00:37:05.259 --> 00:37:10.860 the size as well so go into variables 00:37:08.559 --> 00:37:15.300 again and save huge 00:37:10.860 --> 00:37:18.120 change I by and assuming keep changing I 00:37:15.300 --> 00:37:21.390 change the size so we want to make this 00:37:18.120 --> 00:37:23.220 eyes smaller it started out as 50 if we 00:37:21.390 --> 00:37:27.410 reduce it how much do we want to change 00:37:23.220 --> 00:37:27.410 it by how about by negative negative 10 00:37:27.620 --> 00:37:33.630 so it'll start us 50 then become 40 then 00:37:31.050 --> 00:37:34.800 30 and so now we want to do this not 00:37:33.630 --> 00:37:37.230 just for the points let's make 00:37:34.800 --> 00:37:40.980 everything smaller so click this block 00:37:37.230 --> 00:37:44.430 and hit command C to copy it and the 00:37:40.980 --> 00:37:46.770 command V to paste it and I'll put that 00:37:44.430 --> 00:37:48.630 in there so not only the coins change 00:37:46.770 --> 00:37:51.270 sides make the good little alien change 00:37:48.630 --> 00:37:56.990 size and then click that whole block 00:37:51.270 --> 00:37:56.990 again and hit command C and command V 00:37:58.130 --> 00:38:03.240 the dark side purple aliens right now 00:38:01.110 --> 00:38:03.810 try they're doing again yeah you're 00:38:03.240 --> 00:38:08.640 doing great 00:38:03.810 --> 00:38:11.370 oh my God look how tiny you got you're 00:38:08.640 --> 00:38:22.710 getting a score it's super hard to see 00:38:11.370 --> 00:38:24.690 you anger is not as good as me it's so 00:38:22.710 --> 00:38:26.910 these aliens are now size 10 so it's 00:38:24.690 --> 00:38:27.810 hard to see them all right that was 00:38:26.910 --> 00:38:29.850 super fun 00:38:27.810 --> 00:38:31.590 so I'm gonna stop this for a second 00:38:29.850 --> 00:38:33.150 mount like all things you make on code 00:38:31.590 --> 00:38:35.550 over one thing we can do is we made this 00:38:33.150 --> 00:38:37.500 little game and we can share it out and 00:38:35.550 --> 00:38:39.420 if you want you can actually I'm gonna 00:38:37.500 --> 00:38:42.750 make this a little bit bigger you can 00:38:39.420 --> 00:38:45.330 actually scan what we this QR code using 00:38:42.750 --> 00:38:47.100 your phones and the app that Sophia made 00:38:45.330 --> 00:38:48.360 would then show up you just tap the 00:38:47.100 --> 00:38:50.490 little thing that shows up on your 00:38:48.360 --> 00:38:52.290 screen and that after we just made this 00:38:50.490 --> 00:38:54.600 on your phone to play it so if you don't 00:38:52.290 --> 00:38:56.550 play it right now 00:38:54.600 --> 00:38:58.110 but instead of doing that right now 00:38:56.550 --> 00:38:59.760 we're gonna send this app to you an 00:38:58.110 --> 00:39:01.950 email later so you can actually improve 00:38:59.760 --> 00:39:03.420 on it more in fact one of the things we 00:39:01.950 --> 00:39:05.820 wanted to do is figure out what happens 00:39:03.420 --> 00:39:08.010 when the good alien runs into the bad 00:39:05.820 --> 00:39:11.820 purple aliens that's something you can 00:39:08.010 --> 00:39:13.680 do now before we go into the next part 00:39:11.820 --> 00:39:16.290 of our episode actually want to take a 00:39:13.680 --> 00:39:19.250 pause and do our trivia questions so 00:39:16.290 --> 00:39:19.250 it's trivia attack yourself 00:39:19.420 --> 00:39:23.930 so fuzzy we want you to read the trivia 00:39:22.400 --> 00:39:25.700 question for today's audience and 00:39:23.930 --> 00:39:27.740 everybody of the frosted zum caulk and 00:39:25.700 --> 00:39:29.869 answers make sure to read the question 00:39:27.740 --> 00:39:35.390 and all the answers and should I answer 00:39:29.869 --> 00:39:37.880 it like last time what was the first 00:39:35.390 --> 00:39:38.510 computer that had real-world practical 00:39:37.880 --> 00:39:42.230 use 00:39:38.510 --> 00:39:45.650 was it the ENIAC the Turing machine the 00:39:42.230 --> 00:39:49.420 baggage the Babbage calculator or a 00:39:45.650 --> 00:39:53.030 human who did the job of a computer 00:39:49.420 --> 00:39:55.849 let's see who's the who's ahead looks 00:39:53.030 --> 00:39:57.500 like I'm watching the results come in 00:39:55.849 --> 00:39:59.059 not everybody else can see them but we 00:39:57.500 --> 00:40:02.569 have about half of our audience is 00:39:59.059 --> 00:40:04.280 already voted I don't know I don't know 00:40:02.569 --> 00:40:09.440 what the image of you voted and this is 00:40:04.280 --> 00:40:11.900 a pretty tight one this is tight I don't 00:40:09.440 --> 00:40:13.910 know this is tricky so almost everybody 00:40:11.900 --> 00:40:15.520 has voted so can we share the results of 00:40:13.910 --> 00:40:18.380 people's polls 00:40:15.520 --> 00:40:21.559 Wow everyone thinks that more most 00:40:18.380 --> 00:40:23.180 people think it was a human so I'll say 00:40:21.559 --> 00:40:24.770 straight up the Turing machine isn't 00:40:23.180 --> 00:40:27.770 actually a physical machine it's a 00:40:24.770 --> 00:40:30.950 conceptual abstraction and the Babbage 00:40:27.770 --> 00:40:34.279 calculator was really also theoretical 00:40:30.950 --> 00:40:36.890 calculator Charles Babbage came up with 00:40:34.279 --> 00:40:38.180 the idea of a computer but neither of 00:40:36.890 --> 00:40:42.109 those are actually sort of real-world 00:40:38.180 --> 00:40:44.420 practical uses I'm going to give you the 00:40:42.109 --> 00:40:49.039 answer be a screen share so just one 00:40:44.420 --> 00:40:53.930 second I'm going to share my screen 00:40:49.039 --> 00:40:57.289 the ania computer built in 1945 80 some 00:40:53.930 --> 00:41:00.109 80 years ago it was 800 square 1,800 00:40:57.289 --> 00:41:03.349 square feet of office space it took and 00:41:00.109 --> 00:41:05.569 it weighed 32 tons this was the first 00:41:03.349 --> 00:41:07.700 modern anumana the first computer with 00:41:05.569 --> 00:41:10.069 practical use and used vacuum tubes 00:41:07.700 --> 00:41:12.500 instead of transistors and electricity's 00:41:10.069 --> 00:41:15.020 and today's phones like Sofia's phone 00:41:12.500 --> 00:41:17.420 right here have a tiny chip the size of 00:41:15.020 --> 00:41:19.190 a fingernail that's literally a million 00:41:17.420 --> 00:41:22.369 times more powerful than this first 00:41:19.190 --> 00:41:25.339 computer however this wasn't the first 00:41:22.369 --> 00:41:29.390 computer that had real-world practical 00:41:25.339 --> 00:41:32.090 uses the first computer as early as 1613 00:41:29.390 --> 00:41:34.850 a computer was somebody who did 00:41:32.090 --> 00:41:37.280 shooting work like math work like math 00:41:34.850 --> 00:41:39.950 calculations and throughout the 1800s 00:41:37.280 --> 00:41:43.670 and even the 1900s entire teams of 00:41:39.950 --> 00:41:45.320 computers often women would work on hard 00:41:43.670 --> 00:41:47.990 problems because we didn't have the 00:41:45.320 --> 00:41:50.270 machines yet to do this work and in fact 00:41:47.990 --> 00:41:52.400 here's pictures of some of the women who 00:41:50.270 --> 00:41:55.010 helped get the man on the moon it helps 00:41:52.400 --> 00:41:57.020 America's space program these young 00:41:55.010 --> 00:41:58.880 women were called computers that was 00:41:57.020 --> 00:42:00.800 literally their job and if you've seen 00:41:58.880 --> 00:42:03.050 the movie hidden figures at showcases a 00:42:00.800 --> 00:42:04.880 woman named Katherine Goble who's one of 00:42:03.050 --> 00:42:06.860 these women these women basically did 00:42:04.880 --> 00:42:09.110 the work of now today's modern day 00:42:06.860 --> 00:42:12.140 computers and I think that's interesting 00:42:09.110 --> 00:42:13.670 because in today's world technology is 00:42:12.140 --> 00:42:16.640 constantly improving in a way that 00:42:13.670 --> 00:42:19.010 changes jobs and human jobs are being 00:42:16.640 --> 00:42:21.590 replaced by machines and the computer 00:42:19.010 --> 00:42:24.080 itself used to be a human job long 00:42:21.590 --> 00:42:26.690 before we have what we what we now think 00:42:24.080 --> 00:42:28.520 of as computers so we're now going to 00:42:26.690 --> 00:42:32.510 move to the next segment in our episode 00:42:28.520 --> 00:42:34.600 which is using variables and apps and 00:42:32.510 --> 00:42:37.940 we're gonna say goodbye to Sofia 00:42:34.600 --> 00:42:42.080 I see that and we're gonna welcome my 00:42:37.940 --> 00:42:44.690 second sidekick and my son Darius hi all 00:42:42.080 --> 00:42:47.450 right Darius ideas so what we're gonna 00:42:44.690 --> 00:42:49.520 do is we're gonna make an app that helps 00:42:47.450 --> 00:42:57.250 us invent a story it's gonna be a tell 00:42:49.520 --> 00:43:00.110 me a story that is really nervous a 00:42:57.250 --> 00:43:01.640 little bit a little bit nervous it's 00:43:00.110 --> 00:43:03.620 always a little bit nervous to have a 00:43:01.640 --> 00:43:05.330 big audience and it's especially nervous 00:43:03.620 --> 00:43:07.130 when you're coding in front of the big 00:43:05.330 --> 00:43:09.020 audience coding by yourself is a lot 00:43:07.130 --> 00:43:11.780 easier because you can make mistakes and 00:43:09.020 --> 00:43:13.220 then you can fix your mistakes making a 00:43:11.780 --> 00:43:16.760 mistake in front of thousands of people 00:43:13.220 --> 00:43:19.100 is definitely different so we're gonna 00:43:16.760 --> 00:43:21.620 share screens here we're now in co.org 00:43:19.100 --> 00:43:23.510 app lab and what you see here on the 00:43:21.620 --> 00:43:25.550 left is the app we're gonna create on 00:43:23.510 --> 00:43:27.140 the right is the code and we've started 00:43:25.550 --> 00:43:27.740 some of this for you I'm gonna walk you 00:43:27.140 --> 00:43:30.290 through this 00:43:27.740 --> 00:43:32.990 we're in design mode you can see this 00:43:30.290 --> 00:43:35.930 app has a bunch of text inputs where you 00:43:32.990 --> 00:43:38.270 can enter a name an adjective a noun and 00:43:35.930 --> 00:43:40.130 a verb and when you click this button 00:43:38.270 --> 00:43:41.480 it's not doesn't do anything yet because 00:43:40.130 --> 00:43:43.099 we haven't written the code for it but 00:43:41.480 --> 00:43:46.640 we would like it to do 00:43:43.099 --> 00:43:48.529 is to store all this information just 00:43:46.640 --> 00:43:50.900 like yara asked the valuables to 00:43:48.529 --> 00:43:52.339 remember the names of fruits we want the 00:43:50.900 --> 00:43:55.999 this app to remember this information 00:43:52.339 --> 00:43:58.609 and then to switch to screen two and to 00:43:55.999 --> 00:44:01.430 fill in those different words to finish 00:43:58.609 --> 00:44:03.259 this sentence to make a story so this 00:44:01.430 --> 00:44:04.729 here is going to be the name and this 00:44:03.259 --> 00:44:06.979 year is going to be an adjective and 00:44:04.729 --> 00:44:10.400 this year it's going to be a noun and so 00:44:06.979 --> 00:44:12.829 on so let's go to code mode and write 00:44:10.400 --> 00:44:14.809 the code of what happens when you click 00:44:12.829 --> 00:44:17.329 this button let's remember the 00:44:14.809 --> 00:44:19.059 information here using variables fuzzy 00:44:17.329 --> 00:44:20.259 will you be able to help us doing this 00:44:19.059 --> 00:44:23.329 absolutely 00:44:20.259 --> 00:44:25.789 alright so darius what i want you to do 00:44:23.329 --> 00:44:28.729 is if you look here there's an on event 00:44:25.789 --> 00:44:30.440 block is what happens when the story 00:44:28.729 --> 00:44:32.269 button gets clicked and what we want to 00:44:30.440 --> 00:44:34.369 do is get the text from these things i 00:44:32.269 --> 00:44:36.380 store them in baggies and if you look up 00:44:34.369 --> 00:44:39.589 top we already have created the values 00:44:36.380 --> 00:44:41.599 for the main the adjective the mound etc 00:44:39.589 --> 00:44:45.650 so what i want you to do is to go under 00:44:41.599 --> 00:44:52.190 the values category of demands and drag 00:44:45.650 --> 00:44:56.479 out the x equals but instead of x change 00:44:52.190 --> 00:45:01.430 it to your name and you have a small 00:44:56.479 --> 00:45:05.329 type of your name and so the value to 00:45:01.430 --> 00:45:07.369 put a name go into your controls and you 00:45:05.329 --> 00:45:12.859 want to get the value in the text editor 00:45:07.369 --> 00:45:20.150 so use the get text block and you want 00:45:12.859 --> 00:45:21.529 to do get text the main input alright so 00:45:20.150 --> 00:45:23.660 what that's going to do is store that 00:45:21.529 --> 00:45:24.829 into that valuable and then what we want 00:45:23.660 --> 00:45:26.809 to do this is what's happening when the 00:45:24.829 --> 00:45:28.190 tell me your story button is clicked so 00:45:26.809 --> 00:45:31.039 what we want to do next is then it's 00:45:28.190 --> 00:45:34.039 change the screen so go into the blocks 00:45:31.039 --> 00:45:41.029 here know and and find this set screen 00:45:34.039 --> 00:45:44.180 button it's near the very bottom right 00:45:41.029 --> 00:45:46.009 there the set screen and pull that up 00:45:44.180 --> 00:45:48.049 and now we're going to change screens at 00:45:46.009 --> 00:45:51.739 screen too and just to remember what 00:45:48.049 --> 00:45:54.289 screen to is over here you can click to 00:45:51.739 --> 00:45:55.699 in design mode to change screen to so 00:45:54.289 --> 00:45:56.930 that's what screen to its and i go back 00:45:55.699 --> 00:46:00.500 to 00:45:56.930 --> 00:46:03.170 right now once we change screen to 00:46:00.500 --> 00:46:04.850 screen - we can set the text so this 00:46:03.170 --> 00:46:06.230 text isn't the dispersed label up here 00:46:04.850 --> 00:46:07.880 if you can move your mouse above this 00:46:06.230 --> 00:46:10.190 these sort of question marks that's 00:46:07.880 --> 00:46:14.450 where the name output is going to go so 00:46:10.190 --> 00:46:20.660 go up and find the set text block it's 00:46:14.450 --> 00:46:25.850 at the top you're doing great date and 00:46:20.660 --> 00:46:27.830 set the text for name output right now 00:46:25.850 --> 00:46:29.960 it's gonna fill it up with the word text 00:46:27.830 --> 00:46:32.060 but we don't want to set the name output 00:46:29.960 --> 00:46:33.530 to the text we want to use it about and 00:46:32.060 --> 00:46:37.580 our variables let's see what should we 00:46:33.530 --> 00:46:42.290 put over there for the variable yeah 00:46:37.580 --> 00:46:46.160 this text here or the text I would say 00:46:42.290 --> 00:46:48.410 funny no we want to change it to what we 00:46:46.160 --> 00:46:51.320 stored in the variable so we're gonna 00:46:48.410 --> 00:46:56.690 use your name which was the value that 00:46:51.320 --> 00:47:02.480 we remembered oh I see alright so now 00:46:56.690 --> 00:47:04.940 let's run this and see how it works it's 00:47:02.480 --> 00:47:07.250 okay now hit run so now it's gonna say 00:47:04.940 --> 00:47:09.380 let's come up with a story and so we're 00:47:07.250 --> 00:47:11.690 gonna enter a name fuzzy pickles random 00:47:09.380 --> 00:47:14.990 name for us random name 00:47:11.690 --> 00:47:15.770 oh yeah pick darius darius that wasn't 00:47:14.990 --> 00:47:18.740 very random 00:47:15.770 --> 00:47:20.810 now click tell me a story and so you can 00:47:18.740 --> 00:47:23.270 see it says one fine day darius walk 00:47:20.810 --> 00:47:26.930 into a blank blank and blank over a 00:47:23.270 --> 00:47:29.240 blank it was a truly great day so that's 00:47:26.930 --> 00:47:31.850 our first step of remembering what 00:47:29.240 --> 00:47:34.640 darius entered but we need to do the 00:47:31.850 --> 00:47:37.730 rest of it so we're not going to do this 00:47:34.640 --> 00:47:39.350 all typing in the code right now we've 00:47:37.730 --> 00:47:42.500 actually written the lines to copy 00:47:39.350 --> 00:47:44.210 seduce click show text when you click 00:47:42.500 --> 00:47:46.280 show text you see all this code of 00:47:44.210 --> 00:47:48.470 JavaScript instead of blocks and if you 00:47:46.280 --> 00:47:50.450 go to the very bottom you see where it 00:47:48.470 --> 00:47:52.040 has all these adjectives already made 00:47:50.450 --> 00:47:54.200 the adjectives and nouns and all these 00:47:52.040 --> 00:47:57.710 get text blocks can you select all of 00:47:54.200 --> 00:48:01.010 that and then cut it this looks like 00:47:57.710 --> 00:48:03.920 really hard it looks like what my code 00:48:01.010 --> 00:48:06.710 yes paste it there and then go down to 00:48:03.920 --> 00:48:08.119 the bottom again and then all these set 00:48:06.710 --> 00:48:12.650 texts 00:48:08.119 --> 00:48:14.809 put it again so fuzzy yeah this what 00:48:12.650 --> 00:48:16.969 we're doing right now is no longer like 00:48:14.809 --> 00:48:18.979 dragging and dropping blocks it's 00:48:16.969 --> 00:48:21.619 dragging it's literally and how real 00:48:18.979 --> 00:48:23.539 coders work in new texts but one thing 00:48:21.619 --> 00:48:25.999 you can notify Z is even though we're 00:48:23.539 --> 00:48:29.959 we're here you can still drag and drop 00:48:25.999 --> 00:48:32.359 blocks into here Wow 00:48:29.959 --> 00:48:35.150 turns out to flex that's kind of neat 00:48:32.359 --> 00:48:37.609 and then once we're done we can change 00:48:35.150 --> 00:48:39.589 the back to block mode and everything we 00:48:37.609 --> 00:48:43.579 copied and pasted is back into blocks 00:48:39.589 --> 00:48:45.799 and so now and I'm going to close this 00:48:43.579 --> 00:48:47.809 so you can see it more easily so what we 00:48:45.799 --> 00:48:51.319 did now is when the story button is 00:48:47.809 --> 00:48:53.479 clicked we collect just like Yara asked 00:48:51.319 --> 00:48:55.309 Samuel to remember a banana and so in 00:48:53.479 --> 00:48:57.319 soda a number of here we're going to 00:48:55.309 --> 00:48:58.609 change these variables your name is 00:48:57.319 --> 00:49:00.890 going to remember what's in the main 00:48:58.609 --> 00:49:02.650 input and a man and what's the name of 00:49:00.890 --> 00:49:05.689 this spiral each of these virals 00:49:02.650 --> 00:49:08.329 remembers each of these things here so 00:49:05.689 --> 00:49:10.939 when we change the screen when we change 00:49:08.329 --> 00:49:13.130 the screen in each of these labels we 00:49:10.939 --> 00:49:15.199 can set text and we get the values in 00:49:13.130 --> 00:49:17.289 the baggages Siderius can you run this 00:49:15.199 --> 00:49:20.569 and now we're going to try it out 00:49:17.289 --> 00:49:22.539 so let's now come up with this dinner so 00:49:20.569 --> 00:49:26.569 why don't you now come up with a name 00:49:22.539 --> 00:49:32.380 pick a random one like me you wanna do 00:49:26.569 --> 00:49:35.479 fuzzy okay 00:49:32.380 --> 00:49:37.339 all right for the adjective fuzzy you 00:49:35.479 --> 00:49:39.829 want to pick a good adjective give us a 00:49:37.339 --> 00:49:43.269 fun yeah I'll go with funny like I was 00:49:39.829 --> 00:49:46.400 putting before funny yeah 00:49:43.269 --> 00:49:52.099 which rhymes with fuzzy it rhymes with 00:49:46.400 --> 00:49:53.900 fuzzy and then for the third so for the 00:49:52.099 --> 00:49:55.400 third for the second adjective well 00:49:53.900 --> 00:49:57.109 let's do an audience poll so great 00:49:55.400 --> 00:50:00.799 blanket poll so the entire audience can 00:49:57.109 --> 00:50:04.249 choose the adjective we use so we can 00:50:00.799 --> 00:50:05.869 choose funny braid famous or clumsy I 00:50:04.249 --> 00:50:09.170 kind of bet I know what people are gonna 00:50:05.869 --> 00:50:10.640 choose yeah we were paying this we were 00:50:09.170 --> 00:50:11.589 pretty much certain what everybody is 00:50:10.640 --> 00:50:15.140 gonna think is their favor 00:50:11.589 --> 00:50:18.270 all right almost all of you have voted 00:50:15.140 --> 00:50:20.670 all right so can we share the results 00:50:18.270 --> 00:50:26.120 all right the most popular adjective is 00:50:20.670 --> 00:50:26.120 clumsy so Darius can you type the clumsy 00:50:28.280 --> 00:50:35.250 so steamed funny clumsy now bears can 00:50:31.590 --> 00:50:38.190 you pick another now the grocery store 00:50:35.250 --> 00:50:45.990 grocery store actually no I don't want 00:50:38.190 --> 00:50:48.360 to type all right and then fuzzy you 00:50:45.990 --> 00:50:54.000 want to pick another now yeah how about 00:50:48.360 --> 00:50:57.240 a puppy happy and then last let's use an 00:50:54.000 --> 00:51:01.020 audience choose a verb that ends in D so 00:50:57.240 --> 00:51:08.610 can we put up the audience poll so 00:51:01.020 --> 00:51:10.980 appeared sneezed jumped or danced and 00:51:08.610 --> 00:51:13.860 let's let the audience choose what they 00:51:10.980 --> 00:51:15.450 want all right 00:51:13.860 --> 00:51:18.240 and can we share the results of the 00:51:15.450 --> 00:51:21.840 audience votes all right the winning 00:51:18.240 --> 00:51:31.470 answer is sneezed so Daris can enter 00:51:21.840 --> 00:51:33.720 sneezed and then tell me a story so one 00:51:31.470 --> 00:51:36.150 fine day buzz if you want to read it for 00:51:33.720 --> 00:51:38.430 us sure but I'm gonna get all emotional 00:51:36.150 --> 00:51:40.740 this is a story my mom used to read to 00:51:38.430 --> 00:51:44.340 me when I was a baby 00:51:40.740 --> 00:51:47.880 one fine day Steve walked into a funny 00:51:44.340 --> 00:51:51.330 arcade and sneezed over a clumsy puppy 00:51:47.880 --> 00:51:52.710 it was truly a great day I remember it 00:51:51.330 --> 00:51:59.070 like yesterday when she used to read 00:51:52.710 --> 00:52:00.750 this to me that's a wonderful story and 00:51:59.070 --> 00:52:02.340 by the way fuzzy I have inside 00:52:00.750 --> 00:52:05.040 information that your mom is actually 00:52:02.340 --> 00:52:09.600 watching this today so Wow so she'll 00:52:05.040 --> 00:52:11.160 confirm this confirm this so thank you 00:52:09.600 --> 00:52:13.230 so much fuzzy for helping us with this 00:52:11.160 --> 00:52:14.970 app and what we're gonna do by the way 00:52:13.230 --> 00:52:16.830 is you're gonna get an email with this 00:52:14.970 --> 00:52:18.930 app so you can improve on it yourself so 00:52:16.830 --> 00:52:21.630 you can make multiple stories there's 00:52:18.930 --> 00:52:23.700 multiple changes you can make to it so 00:52:21.630 --> 00:52:25.260 for example you can take out this very 00:52:23.700 --> 00:52:27.720 last line and replace it with another 00:52:25.260 --> 00:52:29.520 variable you can make a second story 00:52:27.720 --> 00:52:31.110 that uses the same inputs and you can 00:52:29.520 --> 00:52:31.559 let their user to click between the two 00:52:31.110 --> 00:52:34.049 story 00:52:31.559 --> 00:52:35.910 you can make a longer story you gonna 00:52:34.049 --> 00:52:37.380 have this app I'm not gonna use the QR 00:52:35.910 --> 00:52:41.400 code to share it we'll send it to via 00:52:37.380 --> 00:52:43.109 email I want to then also get some 00:52:41.400 --> 00:52:45.630 chance for the audience questions that 00:52:43.109 --> 00:52:47.189 people submitted for fuzzy so Akira 00:52:45.630 --> 00:52:50.999 our producer is gonna join up again and 00:52:47.189 --> 00:52:53.459 then share the questions for fuzzy at 00:52:50.999 --> 00:52:56.279 this point I am an expert question asker 00:52:53.459 --> 00:52:58.709 overlayer I'd like to think so fuzzy 00:52:56.279 --> 00:53:00.599 this one is from Caitlin sea in Wyoming 00:52:58.709 --> 00:53:01.769 she said what's at max have you had in 00:53:00.599 --> 00:53:04.829 your career and how did you overcome 00:53:01.769 --> 00:53:06.029 them what setback that's a great 00:53:04.829 --> 00:53:08.549 question 00:53:06.029 --> 00:53:11.400 setbacks I wouldn't say it's setbacks 00:53:08.549 --> 00:53:13.799 because I always learn from every single 00:53:11.400 --> 00:53:17.910 experience that I have and it's been 00:53:13.799 --> 00:53:20.369 literally just you know making sure that 00:53:17.910 --> 00:53:22.289 I've learned over time that I do much 00:53:20.369 --> 00:53:25.979 better when I really enjoy what I work 00:53:22.289 --> 00:53:27.749 on and I've learned that like trying 00:53:25.979 --> 00:53:30.569 different experiences and if it's not 00:53:27.749 --> 00:53:32.130 working out going to the next one but 00:53:30.569 --> 00:53:34.140 using the last one as a learning 00:53:32.130 --> 00:53:37.049 experience is really important so when I 00:53:34.140 --> 00:53:39.509 was selling life insurance realizing 00:53:37.049 --> 00:53:42.420 that I didn't necessarily I wasn't as 00:53:39.509 --> 00:53:44.369 good at selling but I still expand I 00:53:42.420 --> 00:53:46.529 learned a lot from it and then I moved 00:53:44.369 --> 00:53:49.140 on to the next thing so you're always 00:53:46.529 --> 00:53:52.650 just learning and trying new things and 00:53:49.140 --> 00:53:54.709 you just can't give up thank you so much 00:53:52.650 --> 00:53:58.289 buzzy and this next question is for both 00:53:54.709 --> 00:54:00.269 you Hadi and fuzzy this is from Alice in 00:53:58.289 --> 00:54:02.459 Zambia she said universities are 00:54:00.269 --> 00:54:04.170 expensive so how can I learn computer 00:54:02.459 --> 00:54:06.239 science without a university education 00:54:04.170 --> 00:54:08.789 so judging by the question I'm assuming 00:54:06.239 --> 00:54:10.499 she's a bit further along and so if you 00:54:08.789 --> 00:54:12.299 both could speak to how can she learn 00:54:10.499 --> 00:54:14.549 the basics and also how can she continue 00:54:12.299 --> 00:54:17.309 to grow as she reached reaches those 00:54:14.549 --> 00:54:20.339 more advanced stages how do you want to 00:54:17.309 --> 00:54:22.109 take this or I can take it I can take it 00:54:20.339 --> 00:54:23.789 all though Fuzzy's a perfect example of 00:54:22.109 --> 00:54:25.979 somebody who's had an incredible career 00:54:23.789 --> 00:54:27.779 creating and creating google 00:54:25.979 --> 00:54:29.670 spreadsheets and even Google Docs and 00:54:27.779 --> 00:54:32.009 Google Drive there's being used by over 00:54:29.670 --> 00:54:33.809 a billion users and he never went to a 00:54:32.009 --> 00:54:36.749 university to learn computer science he 00:54:33.809 --> 00:54:38.549 basically taught himself coding and so 00:54:36.749 --> 00:54:40.979 there's lots and lots of people that 00:54:38.549 --> 00:54:43.390 teach yourself I also taught myself when 00:54:40.979 --> 00:54:45.430 I was much younger living in Iran 00:54:43.390 --> 00:54:48.400 but when I tell myself it wasn't nearly 00:54:45.430 --> 00:54:49.870 as easy you needed to use books and 00:54:48.400 --> 00:54:52.930 learning computer programming as part 00:54:49.870 --> 00:54:54.520 today if you use code org as a beginner 00:54:52.930 --> 00:54:57.580 you can learn all the stuff that we were 00:54:54.520 --> 00:54:59.050 showing you you can use code or to 00:54:57.580 --> 00:55:00.760 basically learn from our lessons that 00:54:59.050 --> 00:55:04.000 guide you through them and you can also 00:55:00.760 --> 00:55:06.040 get full computer science university 00:55:04.000 --> 00:55:08.080 level computer science classes online as 00:55:06.040 --> 00:55:10.780 well and in fact if you visit code.org 00:55:08.080 --> 00:55:13.720 we link to some of the best university 00:55:10.780 --> 00:55:16.600 computer science classes such as cs50 at 00:55:13.720 --> 00:55:19.330 Harvard which I suspect is their class a 00:55:16.600 --> 00:55:21.100 Jana she D is going to take when one of 00:55:19.330 --> 00:55:23.230 either whether junior year senior year 00:55:21.100 --> 00:55:25.270 starts and it's a year-long computer 00:55:23.230 --> 00:55:27.010 science class that you could pay tens of 00:55:25.270 --> 00:55:28.690 thousands of dollars to go to Harvard to 00:55:27.010 --> 00:55:30.850 take that class or you can take it 00:55:28.690 --> 00:55:32.460 online besides that there's many other 00:55:30.850 --> 00:55:35.400 online university classes that you can 00:55:32.460 --> 00:55:38.890 see links to from the code.org websites 00:55:35.400 --> 00:55:40.750 and if you sign up on co.org slash break 00:55:38.890 --> 00:55:43.120 for a mailing list you'll actually will 00:55:40.750 --> 00:55:46.540 link that in our weekly email after this 00:55:43.120 --> 00:55:48.100 episode oh wow just to expand on that 00:55:46.540 --> 00:55:50.530 the best way to learn is to have a 00:55:48.100 --> 00:55:52.180 project in mind so I love the fact that 00:55:50.530 --> 00:55:54.610 when you go on code or you're actually 00:55:52.180 --> 00:55:56.200 building something and learning it's 00:55:54.610 --> 00:55:59.230 much better than reading a book whenever 00:55:56.200 --> 00:56:01.090 I've done I've learned I in the past I 00:55:59.230 --> 00:56:03.060 would get all sorts of books and then I 00:56:01.090 --> 00:56:06.100 would try to use it to build something 00:56:03.060 --> 00:56:08.110 exactly and we're so lucky we've had 00:56:06.100 --> 00:56:10.060 students now have created 80 million 00:56:08.110 --> 00:56:13.360 projects on code.org in just the last 00:56:10.060 --> 00:56:15.040 two years so you won't be alone so we're 00:56:13.360 --> 00:56:17.260 reaching the end of our time whether the 00:56:15.040 --> 00:56:18.910 fun doesn't stop here we're gonna send 00:56:17.260 --> 00:56:20.800 you all an email within the next hour 00:56:18.910 --> 00:56:22.990 with all of our weekly challenges if 00:56:20.800 --> 00:56:26.470 you're not on our email list go to code 00:56:22.990 --> 00:56:28.330 org slash break and sign up and for this 00:56:26.470 --> 00:56:29.740 week's challenges you're first gonna get 00:56:28.330 --> 00:56:32.680 some practice you're gonna practice 00:56:29.740 --> 00:56:34.750 variables to make a little bee that goes 00:56:32.680 --> 00:56:36.280 and fetches honey and for our older 00:56:34.750 --> 00:56:38.230 students there's some variable puzzles 00:56:36.280 --> 00:56:39.940 that you can do an app lab and then for 00:56:38.230 --> 00:56:42.550 this week's challenge you can either 00:56:39.940 --> 00:56:44.800 modify the alien coin game that Sophia 00:56:42.550 --> 00:56:46.960 made or if you can add features to a 00:56:44.800 --> 00:56:49.060 storyteller app that there is made or do 00:56:46.960 --> 00:56:51.070 both of those and when you finish share 00:56:49.060 --> 00:56:53.110 with your parents if you have social 00:56:51.070 --> 00:56:55.720 media you can ask them to share the app 00:56:53.110 --> 00:56:57.220 on social media with hashtag go break or 00:56:55.720 --> 00:56:59.020 you can email it to us and 00:56:57.220 --> 00:57:00.940 that will pick two of the best ones that 00:56:59.020 --> 00:57:02.800 you submit to highlight them and invite 00:57:00.940 --> 00:57:05.290 them on our show next week and for 00:57:02.800 --> 00:57:06.790 parents our activities each week include 00:57:05.290 --> 00:57:07.900 activities that students can do on a 00:57:06.790 --> 00:57:09.940 mobile phone if you don't have a 00:57:07.900 --> 00:57:11.530 computer or even an unplugged activity 00:57:09.940 --> 00:57:14.890 for students who don't have even a 00:57:11.530 --> 00:57:17.400 device of any sort so please sign up for 00:57:14.890 --> 00:57:21.040 our mailing list at code.org slash break 00:57:17.400 --> 00:57:23.320 and lastly before we say goodbye I want 00:57:21.040 --> 00:57:25.240 to share next week's special guests 00:57:23.320 --> 00:57:26.740 which I'm very excited about we have two 00:57:25.240 --> 00:57:30.130 special guests next week 00:57:26.740 --> 00:57:32.349 one is Macklemore the famous rapper and 00:57:30.130 --> 00:57:35.650 the second is Scott Forstall the 00:57:32.349 --> 00:57:37.480 inventor of iOS and the iPhone so that's 00:57:35.650 --> 00:57:40.869 going to be a really special episode and 00:57:37.480 --> 00:57:42.849 not one to miss as we part I want to say 00:57:40.869 --> 00:57:46.140 goodbye to our special guest fuzzy so 00:57:42.849 --> 00:57:48.280 can we all switch to gallery view and 00:57:46.140 --> 00:57:50.440 I'm going to play a quick round of 00:57:48.280 --> 00:57:54.070 applause for fuzzy since so yeah it's 00:57:50.440 --> 00:58:00.400 not here for us and all right everybody 00:57:54.070 --> 00:58:02.290 good bye I by Darius great job thank you 00:58:00.400 --> 00:58:04.510 and if you enjoyed today's episode 00:58:02.290 --> 00:58:06.250 please spread the word if each of you 00:58:04.510 --> 00:58:08.080 invites other pounds we're gonna to 00:58:06.250 --> 00:58:08.740 gather make this largest interactive 00:58:08.080 --> 00:58:11.530 classroom 00:58:08.740 --> 00:58:15.480 thank you all goodbye see you next week 00:58:11.530 --> 00:58:15.480 and if you're alone take a code break 00:58:24.820 --> 00:58:26.880 you 00:58:53.430 --> 00:58:55.490 you 00:59:19.589 --> 00:59:21.650 you 01:00:37.500 --> 01:00:40.780 [Music] 01:00:51.770 --> 01:00:54.869 [Music] 01:00:59.320 --> 01:01:02.599 [Music]