11-13 yrs old
14-18 yrs old
All That Syntax
September 8, 2020
Lesson 1 world
Scope and Sequence_Python 101
Tell the students that they need to help a software development company called CodingMine by finding and fixing all the bugs in the software they create. The CEO of the company really needs the students’ help, as it seems that the problem has become widespread in many pieces of code that they write. The students need to write down Minecraft Python commands using the correct syntax and find and correct errors in other already existing pieces of code.
- Computer languages
- Algorithms: how a computer thinks
- What is Python, and what version of Python will be used?
- Minecraft Python command structure
Coding activities (30 minutes)
1. What is right?
Tell the students that the developer needs their help to figure out which one of the commands on the computer monitors is written correctly. They will have to do this by checking each of the commands in the coding window [c] to find the one that works. When they find the correct one, they need to press the mouse button on the right side of the small computer monitor where that command is shown. Explain to the students that there should be no syntax errors shown when a correct piece of code is run, and the command should show the word “Hi” in the chat.
2. What's missing?
Tell the students that the programmer has asked for their help as he cannot find out what syntax blocks are missing from the commands on the monitors. There are syntax blocks in the chest in the middle of the room. The students will have to use these blocks to fill in the missing syntax of the commands. The students can also check different solutions for each of the commands on the monitors by running them in the coding window.
3. What is the correct number?
Explain to the students that the data scientist has asked for their help to find out what the correct answer for three sums is. Once they find the correct answer, they should choose it from one of three given possibilities, under each monitor, by pressing the correct button.
Ask the students about the skills that they have learned during the lesson, to reinforce the concepts.
1. Q. What command do we use if we want to show a piece of text or a mathematical value in the chat?
A. The player.say() command
2. Q. Do we use quotes when we want to show a piece of text in the chat?
3 Q. Are numbers used with or without quotes if we want to use their numerical value?
4. Q. What syntax do we place around the parameters of a command?
Sign in with your Microsoft account and sign up for the Minecraft: Education Edition newsletter. We promise to respect your inbox.