Coding Nina and the Neurons


Coding

Similar Content

Browse content similar to Coding. Check below for episodes and series from the same categories and more!

Transcript


LineFromTo

# If you've got a question and you don't know where to go

0:00:050:00:08

# Ask Nina for some help Cos she's got a science show

0:00:080:00:11

# She makes sense of her senses While helping all her fans

0:00:110:00:14

# By doing her experiments with potions and with bangs

0:00:140:00:17

-# Touch your tongue.

-Tongue!

0:00:170:00:19

-# Fingers.

-Fingers!

0:00:190:00:20

-# Eyes.

-Eyes!

-Ears.

-Ears!

-Nose.

-Nose!

0:00:200:00:23

# Nina and the Neurons find out what you need to know

0:00:230:00:27

# Nina and the Neurons find out what you need to know

0:00:270:00:30

# Luke, he helps us with our eyes and Felix with our touch

0:00:300:00:32

# Ollie sniffs out smells and scents And Belle, she hears so much

0:00:320:00:35

# Bud is Ollie's brother He helps us with our taste

0:00:350:00:38

# They're Nina's little Neurons And they're coming to your place!

0:00:380:00:41

-# Touch your tongue.

-Tongue!

0:00:410:00:43

-# Fingers.

-Fingers!

0:00:430:00:44

-# Eyes.

-Eyes!

-Ears.

-Ears!

-Nose.

-Nose!

0:00:440:00:47

# Nina and the Neurons find out what you need to know

0:00:470:00:50

# Nina and the Neurons find out what you need to know

0:00:500:00:53

# Oh, yeah! #

0:00:530:00:54

Erm... Was it? Oh. Oh, hello there.

0:00:560:00:59

Now, I thought I'd finished making this chair, then I found this.

0:00:590:01:04

I must have missed something out of the instructions.

0:01:040:01:08

Erm... Oh, I wonder where it's supposed to go.

0:01:080:01:11

Oh.

0:01:110:01:12

-Found it!

-BEEPING

0:01:140:01:17

I hear a beep, I see a flash. I wonder what they're going to ask.

0:01:170:01:21

-Hi, Nina.

-Hi.

0:01:230:01:26

-We've got a question for you.

-Computers can do amazing things.

0:01:260:01:31

-How do they know what to do?

-That's a great question.

0:01:310:01:35

Computers can do amazing things. How do they know what to do?

0:01:350:01:39

We use computers for absolutely everything.

0:01:390:01:42

They are amazing machines that make our lives easier every day.

0:01:420:01:46

Come down to my lab and investigate.

0:01:460:01:48

-See you soon, Nina. Bye.

-Bye.

0:01:480:01:52

Well, I'm going to need some help to answer this one

0:01:520:01:55

and I know just who to ask.

0:01:550:01:57

OK, Neurons, time to get to work.

0:01:570:01:59

ALL: Neurons at the ready, Nina.

0:02:140:02:17

OK. Today's question is, computers can do amazing things.

0:02:170:02:21

How do they know what to do?

0:02:210:02:23

Which Neuron will be most useful in helping us find the answer?

0:02:230:02:28

-It's all Neurons!

-ALL: Go, Neurons! Go, Neurons!

0:02:280:02:33

Go, Neurons! Go, Neurons!

0:02:330:02:34

Go, Neurons! Go, Neurons! Go Neurons!

0:02:340:02:38

All Neurons hip, hop, happy to help, Nina.

0:02:380:02:41

Today's question is - computers can do amazing things.

0:02:410:02:44

How do they know what to do?

0:02:440:02:46

Now, when we use a computer, we need all our senses,

0:02:460:02:49

so all the Neurons will be helping us today.

0:02:490:02:52

Right, I need to get the lab ready before the experimenters arrive.

0:02:520:02:57

Caleb likes playing football.

0:02:570:02:59

Kennedy likes chicken and chips.

0:02:590:03:01

Sarah loves gymnastics at school.

0:03:010:03:04

My computer can play music.

0:03:040:03:06

I like playing games on my computer.

0:03:060:03:09

I can draw on my computer.

0:03:090:03:11

But they all want to know - computers are amazing.

0:03:130:03:16

How do they know what to do?

0:03:160:03:18

So today, for one day only, Caleb, Kennedy and Sarah

0:03:180:03:22

become the experimenters!

0:03:220:03:24

-Hi, guys.

-Hi, Nina.

0:03:260:03:28

Welcome to my lab and thank you for your question.

0:03:280:03:31

Computers can do amazing things. How do they know what to do?

0:03:310:03:35

To find out the answer, let's start by using our senses.

0:03:350:03:38

ALL: Whoop whoo! A senses experiment! We're ready, Nina.

0:03:380:03:43

First, let's think about how we know what to do.

0:03:430:03:46

Quite often, people tell us what to do. They give us an instruction.

0:03:460:03:50

Like telling us to tidy our room.

0:03:500:03:53

Computers always have to be told what to do

0:03:530:03:55

because they're not people and they can't think like we can.

0:03:550:03:59

-When you tell a computer what to do, it's called coding.

-Coding.

0:03:590:04:03

That sounds important, Nina.

0:04:030:04:06

Coding is very important, Belle.

0:04:060:04:08

It's the instructions for the computer.

0:04:080:04:11

And the exciting thing is, anyone can learn how to do it.

0:04:110:04:14

Let's do an experiment to understand more about coding.

0:04:140:04:19

So in front of you, you each have a white board and a pen.

0:04:190:04:23

Now, we're going to draw a picture

0:04:230:04:25

and I'm going to give you instructions on what to draw.

0:04:250:04:28

Are you ready?

0:04:280:04:29

-Yeah!

-OK. First of all, I would like you to draw a big circle.

0:04:290:04:35

Next, I'd like you to draw two smaller circles

0:04:380:04:41

inside the big circle.

0:04:410:04:43

Now I'd like you to draw a straight line.

0:04:470:04:49

And finally, I'd like you to draw an upside-down rainbow shape.

0:04:490:04:53

OK, experimenters. Let's see what you've drawn.

0:04:570:05:01

I'm not sure what the drawings are.

0:05:010:05:03

I think it's a plate with grapes and a curvy banana. Yum!

0:05:030:05:09

Well, that's not quite what I meant.

0:05:090:05:12

I wanted you to draw something more like...this.

0:05:120:05:16

-My instructions didn't work, did they?

-No.

-No.

0:05:160:05:19

And why do you think they didn't work?

0:05:190:05:21

-We didn't know it was meant to be a face.

-That's right.

0:05:210:05:24

I gave you instructions, but not enough detail.

0:05:240:05:28

I missed important things,

0:05:280:05:29

so you didn't know it was meant to be a face.

0:05:290:05:32

If you want someone to follow instructions,

0:05:320:05:35

you have to give them lots of detail so they know exactly what to do.

0:05:350:05:39

And in the same way, people who write computer code

0:05:390:05:42

have to make sure the instructions are very detailed

0:05:420:05:45

so computers know what to do.

0:05:450:05:47

-Can anyone write computer code, Nina?

-Great question.

0:05:470:05:51

I know a really exciting place where we can find out more.

0:05:510:05:55

FELIX: Oh, goodie. I love this bit. I wonder where Nina is taking us.

0:05:570:06:02

-Oh, maybe we're going on holiday!

-Maybe we're going to the seaside.

0:06:020:06:06

Hey, everyone. We've arrived.

0:06:060:06:09

But it doesn't look like the seaside.

0:06:090:06:11

Now, for our next experiment, I'm going to pretend to be

0:06:110:06:14

a character in a computer game.

0:06:140:06:16

And you guys are going to tell me what to do using this simple code.

0:06:160:06:21

Oh, now, look at this.

0:06:210:06:22

So this arrow means, "move forward."

0:06:240:06:27

This arrow means, "go that way."

0:06:270:06:30

This arrow means, "go that way."

0:06:300:06:33

The aim of this computer game is to keep me on the green path.

0:06:340:06:38

But remember, a computer doesn't think for itself,

0:06:380:06:41

so I can only follow the instructions that you give me.

0:06:410:06:44

-So, are you ready?

-Yeah!

0:06:440:06:47

Let's get coding.

0:06:470:06:49

-OK, what's the first instruction?

-Forward!

-OK.

0:06:490:06:52

-And the next instruction?

-Turn left.

0:06:530:06:57

Turn left.

0:06:570:06:59

-And...?

-Forward.

-Oh, forwards.

0:06:590:07:01

Forwards.

0:07:030:07:04

-And next?

-Turn left.

0:07:060:07:08

-What's next?

-Forward.

0:07:100:07:13

Ooh! Oh, no. I've moved off the green path.

0:07:130:07:16

What went wrong, experimenters?

0:07:160:07:18

-You turned the wrong way, Nina.

-Yes, I turned the wrong way.

0:07:180:07:22

There must be a mistake.

0:07:220:07:24

But mistakes can happen when people write computer code.

0:07:240:07:27

So the people that write them always have to check them.

0:07:270:07:31

-So, should we check our code to see what went wrong?

-Yes.

0:07:310:07:34

This is a plan of the game.

0:07:350:07:37

So let's go back to the beginning and follow the instructions.

0:07:370:07:41

And if we think an instruction's right,

0:07:410:07:44

we can put an arrow into the box.

0:07:440:07:46

OK, let's start with the very first instruction, which is?

0:07:460:07:50

-Forward.

-Forwards. And do we think that's right?

-Yes.

0:07:500:07:53

Yeah, well, why don't you put that onto the first box? Excellent.

0:07:530:07:57

Let's have a look at the second instruction, which is turn left.

0:07:570:08:01

-Is that right?

-Yes.

-OK, put it on for me. Excellent.

0:08:010:08:06

Now, what's the next instruction? Move forward. Is that correct?

0:08:060:08:10

-Looks OK so far, Nina.

-It's another move forward.

0:08:100:08:14

And then it says turn left. Is that correct?

0:08:170:08:21

-No, Nina.

-Well, what way do you think the arrow should point?

0:08:210:08:25

-Right, Nina.

-Correct! The arrow should be pointing the other way.

0:08:250:08:29

Now that's fixed, let's go through the other instructions

0:08:300:08:34

and we'll see if there are any other mistakes.

0:08:340:08:37

-Finished, Nina.

-Hey! Well done. Let's try it again.

0:08:460:08:49

-OK, guys. What's first?

-Forward!

-OK.

0:08:510:08:55

Left.

0:08:560:08:58

Forward.

0:08:580:08:59

Forward.

0:09:000:09:02

Turn right.

0:09:020:09:03

Forward.

0:09:040:09:07

Turn right.

0:09:070:09:08

Forward.

0:09:100:09:11

Forward. Turn left.

0:09:110:09:14

Forward.

0:09:140:09:16

Yay! We did it. Well done, experimenters.

0:09:160:09:21

Your coding worked really well.

0:09:210:09:23

I had all the right instructions and I made it to the finish.

0:09:230:09:27

But Nina, it was a really, really, REALLY long list of instructions.

0:09:270:09:33

Yes, it was a very long list, wasn't it?

0:09:330:09:36

There is a way you can make code shorter.

0:09:360:09:38

And there's a really fun experiment we can do to find out how.

0:09:380:09:42

OK, guys. This time, the code has been written out using picture cards

0:09:440:09:49

and you guys are going to follow the instructions on them.

0:09:490:09:52

-But this list... It's quite long, isn't it?

-Yes.

0:09:520:09:56

Can you spot any patterns in our list of instructions?

0:09:560:10:00

Red, yellow and green.

0:10:000:10:02

That's right.

0:10:020:10:03

In our code, the instructions coloured red, yellow, green

0:10:030:10:07

always come one after the other.

0:10:070:10:09

So instead of having to write out the same instructions over and over,

0:10:090:10:14

we could just give the pattern a name and use the pattern name.

0:10:140:10:17

Patterns have names that tell us about them. So I think this pattern

0:10:170:10:22

should be called "Dance." So each time you see...

0:10:220:10:25

..the Dance instruction, you know that it means

0:10:270:10:30

I want you to do those three moves one after the other.

0:10:300:10:35

So, let's rewrite the list with the Dance card in place of wiggle,

0:10:350:10:39

bend your knees and superhero.

0:10:390:10:41

The list is much shorter. Let's follow the code. Are you ready?

0:10:430:10:48

-Yes, Nina.

-Wave.

0:10:480:10:51

Jump.

0:10:510:10:52

Dance.

0:10:520:10:53

Jump. Wave.

0:10:550:10:56

Wave. Dance.

0:10:560:10:59

Star jump.

0:11:030:11:04

Dance.

0:11:050:11:06

Yay! Well done, experimenters. That was great fun.

0:11:100:11:13

Giving a name to a pattern of instructions

0:11:130:11:16

can save a lot of time when you're writing computer code.

0:11:160:11:19

Let's try out our code on a real computer.

0:11:190:11:23

Nice one.

0:11:270:11:28

Nice choice.

0:11:330:11:34

Jump.

0:11:340:11:35

And you get to press the green button.

0:11:370:11:39

# Nina and the Neurons! #

0:11:500:11:52

So, your question was, computers can do amazing things.

0:11:550:11:58

How do they know what to do? And I think we've answered it.

0:11:580:12:02

People give computers lists of instructions. This is called coding.

0:12:020:12:07

Everyone can learn to write computer code

0:12:070:12:10

so they can write programmes and tell computers what to do.

0:12:100:12:14

If your computer code doesn't work,

0:12:140:12:16

you have to look through all the instructions

0:12:160:12:19

to find the mistake.

0:12:190:12:20

When a computer programme has a group of instructions

0:12:200:12:24

that always come in the same order, it's called a pattern.

0:12:240:12:28

You can give a pattern a name so you don't have to write out

0:12:280:12:32

the same instructions over and over so it saves you time.

0:12:320:12:36

-So, I hope that's answered your question.

-Thanks, Nina. Bye.

0:12:360:12:41

You're welcome, bye.

0:12:410:12:42

If you want to know more about the science that's all around us,

0:12:440:12:48

go to the Nina section on the CBeebies website. Have fun!

0:12:480:12:53

-# Go digital!

-If you want to do it faster.

0:12:530:12:57

-# Go digital!

-If you want to do it better.

0:12:570:13:00

-# Go digital!

-If you want to do it faster.

0:13:000:13:04

# Go digital!

0:13:040:13:06

-# Computers and technology help us every day.

-Yay!

0:13:080:13:13

# Making our lives easier in each and every way

0:13:130:13:17

# They help us understand things

0:13:170:13:18

# And make it very clear

0:13:180:13:20

# They make tricky tasks a piece of cake

0:13:200:13:23

I want cake!

0:13:230:13:25

# If you're trying to understand the world

0:13:250:13:28

-# But the answer is invisible

-Invisible

0:13:280:13:32

# Use the power of computers

0:13:320:13:36

# Switch it on, switch it on

0:13:360:13:38

# Switch it on

0:13:380:13:40

-# Go digital!

-If you want to do it faster

0:13:400:13:44

-# Go digital!

-If you want to do it better

0:13:440:13:48

-# Go digital!

-If you want to do it faster

0:13:480:13:52

# Go digital! #

0:13:520:13:54

Amazing technology is all around us, making our lives faster

0:13:540:13:58

and easier and giving us an even more exciting future.

0:13:580:14:02

So, wherever you go and whatever you do, remember to go digital.

0:14:020:14:06

-See you again soon. Bye.

-ALL: Bye.

0:14:060:14:08

Go digital!

0:14:080:14:10

Download Subtitles

SRT

ASS