Code

Scratch Programming Basics: How to Teach a Cat to Meow — Lecture 2 from the CS50 course

Scratch Programming Basics: How to Teach a Cat to Meow — Lecture 2 from the CS50 course

Free Python Course ➞ Mini-course for beginners and experienced coders. 4 cool projects in the portfolio, live communication with the speaker. Click and find out what you can learn on the course.

Learn More

An author is a person who creates original works or content, whether it be literature, art, music, or any other creative medium. In today's world, the role of an author is becoming increasingly important, as the development of the internet and digital technologies creates many new platforms for self-expression. Authors can share their work through blogs, social media, and other online resources, allowing them to reach a wider audience.

Creating high-quality content requires not only talent but also knowledge of the target audience and SEO skills. Content optimization helps authors increase the visibility of their work in search engines, which helps attract readers and strengthen their brand. It is important to consider keywords, text structure, and readability to make the content more accessible and appealing to the audience. Thus, the author not only creates but also actively promotes his works in the digital space.

David Malan is a renowned professor and lecturer in computer science at Harvard University. He gained popularity thanks to his course "Introduction to Computer Science" (CS50), which covers the fundamentals of programming and software development. This course attracts students from all over the world due to its accessible approach and engaging lectures. David Malan actively uses modern technologies in teaching, including interactive platforms and practical tasks, which makes his courses relevant and in demand. His work inspires a new generation of developers and engineers, shaping the future of technology.

About the author

The author of this material is an expert in his field, possessing extensive experience and knowledge. He actively shares his expertise through various platforms, including blogs and social media. His works are devoted to current topics and issues of interest to modern readers. Thanks to a deep understanding of the subject and the ability to convey information in an accessible language, the author helps his audience better navigate complex issues. His articles are clear, logical, and practical, making them a valuable resource for anyone seeking to expand their knowledge and skills.

An American computer scientist and professor of computer science at Harvard University, he is widely known for his CS50 courses. These courses provide an introduction to computer science and attract students from all over the world, equipping them with essential knowledge and skills in programming and technology. His approach to teaching makes complex concepts accessible and interesting to a wide audience.

A translator is a specialist who translates texts from one language to another. Professional translators have in-depth knowledge of both the source and target languages, which allows them to accurately convey the meaning and nuances of the original. Important aspects of a translator's work include not only the lexical and grammatical features of languages ​​but also cultural contexts that can influence the interpretation of a text.

Modern translators use a variety of tools and technologies, including computer programs and online services, that help speed up the translation process and improve its accuracy. It's important to note that machine translators are not always capable of conveying every nuance of meaning, so the work of a professional remains indispensable.

Translator services are in demand in a wide variety of fields, including business, law, medicine, and technical sciences. High-quality translation not only facilitates communication between people from different countries but also facilitates business expansion into international markets. Choosing a qualified translator is the key to successful interaction and understanding between cultures.

Marina Demidova is a professional in her field, possessing extensive experience and deep knowledge. She actively works on projects related to content development and optimization. With her approach to work, Marina helps clients achieve their goals and improve their online presence. Her expert opinion and creative approach to content creation make her an indispensable specialist in the modern digital world. Marina constantly monitors the latest SEO trends and applies them in her practice, which allows her to create effective strategies for website promotion.

Of course, I am ready to help with text revision. Please provide the source text to be edited.

CS50 2021 in HDR - Lecture 0 - Scratch

Lecture 0 of the CS50 2021 course is devoted to an introduction to programming using Scratch. This visual programming language allows beginners to create interactive projects without having to delve into complex syntax. During the lecture, students will become familiar with the basics of Scratch, learn how to create animations and games, and also examine basic programming concepts such as loops and conditionals. Scratch is suitable for all ages and is an excellent tool for developing logical thinking and creativity. This lecture provides each participant with the opportunity to immerse themselves in the world of programming, opening the door to more complex languages ​​and technologies in the future.

CS50 (Computer Science 50) is a renowned computer science course offered by Harvard and Yale Universities. This course is often referred to as a foundation for aspiring programmers, as it covers key programming concepts and skills. Students learn computer logic, visual programming using Scratch, the fundamentals of the C language, arrays, basic algorithms, memory management, and data structures. The course also covers Python, SQL, HTML, CSS, and JavaScript, and introduces the Flask framework and even emoji. This course is an excellent start for those looking for a deeper understanding of programming and computer technology.

By completing this course, you will master the fundamentals of computer operation, become familiar with universal programming principles, and acquire the skills to read and understand code in various programming languages. This course will help you become a confident technology user and expand your software development capabilities.

In this article, we'll cover the basics of programming using the Scratch visual environment. This approach will allow you to easily grasp basic programming concepts. More complex topics, such as C and other programming languages, will be covered in subsequent articles in the series. Scratch is ideal for beginners because it allows you to create programs using simple graphical blocks, making learning engaging and accessible.

  • Why We Translated CS50 and How Each Article in the Course Is Organized
  • Original Video
  • What is Scracth
  • How the Scratch Environment Works
  • Scratch Programming Tools
  • Teaching a Cat to Say Hello
  • Setting Up Sounds
  • Interactive Communication with a Cat
  • Summary

Why We Translated CS50 and How Each Article in the Course Is Organized

CS50 is the most popular course at Harvard University and the most visited massive open online course on the edX platform. All course materials, including practical assignments, are available for free. However, by paying, you can receive a certificate, as well as access to additional resources and privileges. This course is ideal for those who want to learn the basics of programming, algorithms, and web application development, and is a great start for future developers and IT professionals.

We have converted the video lectures into text format, added illustrations, and expanded the explanations in some places. These materials will be available in the public domain. The original course is initially licensed under an Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. This means you are free to modify and distribute it, but you must maintain the original license. Thus, you can use this series of materials in your professional or social activities absolutely free of charge and without restrictions, subject to the license terms.

Each article in the CS50 series includes a variety of materials.

  • text translation of the video (sometimes half of the video, if the topic is extensive);
  • link to the original video in English;
  • diagrams and explanations;
  • links to more detailed materials on the topic of the article;
  • practical tasks.

A lecturer is a specialist who teaches and shares knowledge in a particular field. Their main task is to convey information and develop skills and abilities in listeners. Lecturers work in educational institutions, at seminars, master classes and conferences, where they present their lectures and lead discussions. The quality of a lecturer's teaching depends on their professionalism, ability to adapt the material to the audience and engage listeners in the learning process. Highly qualified lecturers are able to inspire students, help them gain a deeper understanding of the subject matter, and develop critical thinking. Importantly, lecturers not only impart knowledge but also generate interest in the topics being studied, which ultimately contributes to improving the level of education in society.

An American scientist and professor at Harvard University is known for his significant contributions to scientific research and educational initiatives. His work spans a wide range of disciplines, making him an authority in the academic community. The professor is actively involved in the development of new teaching and research methods, introducing innovative approaches to improve the quality of education.

Original video

A lecturer is a specialist who conducts educational classes, lectures, and seminars, sharing their knowledge and experience with the audience. Lecturers can work in a variety of settings, including higher education, corporate training, and specialized courses. Their primary role is to convey information, develop critical thinking in students, and foster a deep understanding of the subject matter.

Qualities of a successful lecturer include the ability to present material in an accessible and engaging manner, as well as the ability to interact with the audience, answer questions, and engage listeners in discussion. Lecturers must also continually update their knowledge, monitor new research, and stay current with trends in their field to remain relevant and offer listeners valuable and up-to-date information.

In modern education, the role of the lecturer is becoming increasingly important, especially in the digital age, when access to information has become easier, but the need for high-quality interpretation and analysis of data remains paramount. Lecturers not only teach but also inspire students to further study and research, making their work indispensable in the educational process.

The American scientist and Harvard University professor is a prominent figure in the fields of science and education. His research has had a significant impact on the development of various disciplines and contributes to progress in the scientific community. The professor actively participates in educational initiatives, sharing his knowledge and experience with students, thereby shaping the next generation of scientists. His achievements and contributions to science have earned him recognition both nationally and internationally.

What is Scracth?

I present to you my first program, created in 1996 in the C programming language.

Frame: CS50 / YouTube

This code displays the message "hello, world" without quotation marks. It contains many symbols: hash marks, angle brackets, parentheses, and curly braces. These elements can be difficult for a beginner to understand. This code presents more syntactic constructs and symbols than it explains the idea itself. In subsequent articles in this series, we will examine each of these constructs in detail and explain their purpose.

Today we will get acquainted with Scratch, a graphical programming language created at the Massachusetts Institute of Technology. Scratch is a modern development of the Logo language, in which users could control a turtle by executing various commands. This visual programming language provides a convenient interface for learning the basics of coding and logical thinking. Scratch allows you to create animations, games, and interactive projects, making it an ideal tool for beginning programmers and educators. Scratch allows you to visually learn programming fundamentals without the distraction of syntax. It resembles pseudocode, but with visually appealing blocks that actually function. Scratch is ideal for beginners because it helps develop logical thinking and creative problem-solving. Using visual elements, users can easily create interactive projects, making learning fun and accessible. Scratch allows you to create programs in the form of puzzle pieces. The "Hello, world!" program in this language will look like this:

Screenshot: Scratch / Skillbox Media

How Scratch Works

Scratch offers a convenient way to create projects without the need to install software. All actions can be performed directly in the browser, making it accessible to users. Simply open the Scratch online editor and start experimenting with code and creative ideas!

The Scratch interface is an intuitive and user-friendly platform for creating programs. On the main screen, users see a workspace where code elements are placed, as well as a toolbar containing various command blocks. These blocks can be dragged and combined to create animations, games, and interactive stories. On the left side of the interface is a library of sprites, sounds, and backgrounds, making it easy to add visual and audio components to a project. Scratch is suitable for both children and adults, providing access to programming fundamentals through visual programming. Scratch's user-friendly interface makes learning programming fun and accessible, promoting the development of creative skills and logical thinking.

Screenshot: Scratch / Skillbox Media

The default Scratch editor provides A user-friendly interface. Let's take a closer look at all of its tabs.

Code. In this section, we'll focus on programming, adding objects such as items and characters (sprites), as well as animation and other elements. This is our main working tab, where game development and the implementation of all mechanics take place.

Costumes. In this section, you can customize your character (sprite), changing its color, shape, and appearance. Customizing costumes allows you to create a unique look that will make your hero stand out from the crowd. You can experiment with different combinations to find the perfect style for your character.

Screenshot: Scratch / Skillbox Media

Sounds. In this section, you can customize the sound effects your sprite will produce, such as talking, meowing, and singing. Customizing sounds allows you to create a unique atmosphere for your project, adding interactivity and realism. Choose the right sounds to achieve the desired effect and improve the user experience.

Screenshot: Scratch / Skillbox Media

Now let's get back to the code section.

Screenshot: Scratch / Skillbox Media

The screen is divided into five main areas.

  • Palette of program blocks. It represents all the ideas we discussed in the first article of this series.
  • Code Area. This is where we will drag and drop programming blocks and connect them together like puzzle pieces. This is what programming in the Scratch environment will be.
  • Scene. Here we can see how our program works and how commands are executed.
  • Sprite Panel. Here you can add and customize all the objects that are placed on the stage.
  • Background Selector. In this panel, you can choose a background for the animation from the built-in library or upload your own.

The environment allows you to use multiple sprites, such as a cat, on the stage. A sprite can move in different directions: up, down, left and right, and also perform many other actions. Sprite positioning is performed in the standard rectangular XY coordinate system, which allows you to precisely control its placement and movement on the stage. Using sprites in game or animation content creates a dynamic interaction that attracts users' attention.

Screenshot: Scratch / Skillbox Media

Positioning in the coordinate system is an important aspect for Precise placement of sprites on the screen. Correct use of coordinates specified in the sprite panel will allow you to achieve the necessary precision and control over the visual elements in your project. This is especially important when developing games and interactive applications, where every change in the position of a sprite can affect the overall user experience. Pay attention to the correct definition of coordinates to avoid errors in the display and interaction with interface elements.

Scratch Programming Tools

Let's explore the palette of programming blocks, which includes ten types of colored blocks. Each of these blocks is designed to perform specific tasks and can be used to create various programming solutions. The variety of colors and shapes makes it easy to identify blocks and simplifies the process of integrating them into a project. Understanding their functionality and features will help you effectively use the palette in software development.

  • Blue - movement blocks. With their help, you can make a sprite move around the scene, turn, swim, walk. These are the default blocks.
Screenshot: Scratch / Skillbox Media
  • Purple — appearance blocks. With their help, you can change the appearance of sprites, for example, make a cat look like a dog or a bird. You can also change the background of the scene and create speech bubbles with text for sprites.
Screenshot: Scratch / Skillbox Media
  • Purple — sound blocks. Here you can make the cat meow, talk, and make any sounds you want — you can import them or record them yourself.
Screenshot: Scratch / Skillbox Media
  • Yellow — Blocks that allow you to make the sprite react to certain events. The most important of these is clicking the green flag above the panels, which starts playback (and the red dot stops playback). You can configure the sprite to react to pressing various keys, receiving messages, and other events. It's like when you tap an icon on your smartphone screen, swipe it, or press a button on the side—someone wrote specific instructions for all of these events.
Screenshot: Scratch / Skillbox Media
  • Orange blocks are control blocks. You can see that we can repeat something ten times or wait one second, and we can also change the values ​​in the white circles. Here, you can create a loop and do something over and over again, or create a conditional transition: if the condition is true, perform one action; if false, perform another. Cycles and conditions can be combined, nested, or specified in multiples.
Screenshot: Scratch / Skillbox Media
  • Blue — sensors. Here you can ask questions - logical expressions with YES/NO answers: is the sprite touching the mouse pointer, has the question been answered, has a key or mouse button been pressed. For example, you might need to do some calculations to find out if an enemy is approaching a cat.
Screenshot: Scratch / Skillbox Media
  • Green — operators. They allow you to perform mathematical operations, combine words, or get random numbers - this is necessary in games. Operators can be combined.
Screenshot: Scratch / Skillbox Media
  • Orange — variable control blocks. Variables can store any values ​​we need: numbers, letters, words, colors, and anything else. And if in mathematics variables are denoted by the letters x, y, z, then in programming it is customary to call them by words in the singular or plural to describe what they represent.
Screenshot: Scratch / Skillbox Media
  • Pink - other blocks. If the existing blocks aren't enough for you, you can create your own. This is what we will do next.
Screenshot: Scratch / Skillbox Media

Teaching a cat

Now we'll create a simple program. To do this, take the "When green flag is clicked" element from the "Events" panel and drag it into the code area. Then add a purple element—a "Say" block from the appearance category. In the block's text field, enter "Hello, world!" This program will display a message when the green flag is clicked.

Screenshot: Scratch / Skillbox Media

When you click on the green flag on the top panel, a speech bubble with the text "Hello, world!" will appear on the cat on the stage. This interaction adds an element of play and makes the process more engaging. This functionality allows users to better understand how interface elements work and interact with them.

Screenshot: Scratch / Skillbox Media

The program, developed with user convenience in mind, significantly simplifies the perception of information compared to incomprehensible code In C. We'll explore this language later, but initially, it's important to create a clear and accessible working environment.

The "Say" block is a feature that aligns with the concept discussed in the first part of this paradigm. This feature enables user interaction, allowing them to quickly and easily express their thoughts and ideas. The "Say" block plays a vital role in creating interactive content, which contributes to a better user experience and increased engagement. The implementation of this function makes the site more convenient and accessible for visitors, which, in turn, can have a positive effect on its search engine optimization.

Frame: CS50 / YouTube

The text will be input to the function "Hello, world!", which will be processed by the "Say" function. The result of this processing will be a visual effect—a speech bubble appearing on the cat. Side effects are usually called such when they represent additional visual or audio elements, such as the appearance of objects on the screen or the production of sounds.

Frame: CS50 / YouTube

Let's make our program more Interactive by adding personalized greetings like "Hi, David" or "Hi, Carter." To do this, go to the "Sensors" tab and select "Ask." In the text field highlighted in white, you can replace the default question with any other. Clicking the green flag activates a speech bubble with your question, and a field for entering an answer will appear at the bottom of the stage. Now the computer will wait for text input from the user, which will create a more engaging and interactive experience.

Screenshot: Scratch / Skillbox Media

The "Ask" block has a key difference from the "Say": It stores the entered text as a return value, which is designated as "Answer" by default. This function allows for more efficient user interaction, as the received data can be used for further processing or analysis.

In this part of the program, we'll add a new block with the "Say" function and move the "Answer" block to the white field. Then we'll click on the green flag and enter "David" in the field.

Screenshot: Scratch / Skillbox Media

If we press Enter, the cat will not pronounce the word "Hello" and only say "David." This can create confusion in communication and reduce the clarity of information. To avoid such situations, you need to carefully monitor your text input and correct it if necessary.

Screenshot: Scratch / Skillbox Media

The computer quickly switches from one command to another, which leads to Instantly replacing the word "Hello" with the following. To fix this error, delete one of the "Say" blocks. Add the "Merge" operator from the green bar to the empty field of the other "Say" block. Instead of the word "apple" we use "Hello," and instead of the word "banana" we insert the "Answer" block.

Screenshot: Scratch / Skillbox Media

Click the green flag and Enter "David" in the field. After pressing Enter, you will get the desired result.

Screenshot: Scratch / Skillbox Media

Let's bring our program to life using interactive features in Scratch. To access these features, click the "Add extension" button in the lower left corner of the interface. This will allow you to expand the capabilities of your project and make it more engaging and interactive.

Screenshot: Scratch / Skillbox Media

Select the "Text to Speech" extension to convert text to audio format. This extension allows you to quickly and easily translate text into audio, significantly improving the comprehension of information. Using the Text-to-Speech feature, you can improve content accessibility for users, including those with disabilities. This extension supports multiple languages ​​and can be adapted to various content types, making it a versatile tool for web developers and content managers. Using this technology helps improve user experience and optimize the site for search engines.

Screenshot: Scratch / Skillbox Media

Our collection of software blocks features a new tool, "Text to Speech." This functionality allows you to convert text information into audio format, significantly facilitating content comprehension. The Text-to-Speech block is ideal for creating audiobooks, podcasts, and other formats where accessibility is important. We strive to improve user experience, and the new block will be a great addition to our solutions.

Screenshot: Scratch / Skillbox Media

Drag the "Say" block from the "Text to speech" panel to code area, and then move the "Merge" block to its white field. After that, delete the blue "Say" block.

Screenshot: Scratch / Skillbox Media

Now, if you type the name "David" in the text field, the cat will say: "Hello, David." This functionality adds interactivity and makes communicating with your virtual pet more engaging.

Setting Up Sounds

Now we'll use loops and conditionals to create the effect of our cat meowing. To do this, we need to delete all unnecessary blocks and add a new "Play Sound" block from the "Sound" panel. This will allow our cat to make sounds depending on the set conditions, making the program more interactive and interesting.

Screenshot: Scratch / Skillbox Media

When the program starts, the cat makes one meowing sound. But what if we want her to meow three times? Dragging three blocks isn't the best approach. This method creates the risk of errors, especially if we need to change the sound or switch to a different one, like a dog bark. Each change requires editing in multiple places, increasing the likelihood of errors. To avoid duplication and simplify the process, it's better to use more efficient solutions.

A "Repeat" block will be added to the "Controls" panel. To prevent the meowing from sounding too harsh, a "Wait" block will be added after the "Play" block. This will improve user experience and make the sound more enjoyable.

Screenshot: Scratch / Skillbox Media

Now the program can be easily customized to suit your needs. You can change the number of repetitions, select different sounds the cat makes, or add new actions to the loop. This allows you to flexibly adapt the program to achieve the desired result.

We can improve our cat meow program by applying the concept of abstraction in programming. Let's combine the main step-by-step instructions into a single block: "Repeat," "Play Sound," and "Wait." This will optimize the code and make it easier to use, which in turn will improve the user experience.

Go to the "Other Blocks" tab with a pink background and click the "Create Block" icon. This will allow us to begin the process of creating a new content block.

Screenshot: Scratch / Skillbox Media

In the "Block Name" field, enter the value "Meow" and click the button "OK."

A new "Meow" block has been added to the "Other Blocks" panel, and a "Detect 'Meow'" icon has appeared on the workspace. To configure it, drag the "Play" and "Wait" blocks to the icon, then move the "Meow" block from the panel to the "Repeat" section. This will allow us to effectively use the new functionality to interact with users.

Screenshot: Scratch / Skillbox Media

Now we can integrate the "Meow" block anywhere, which allows us to abstract from its content. This will result in more structured and understandable code that is easier to read and maintain. This is especially important if you are new to the code or plan to make changes over time. Proper code organization contributes to its durability and facilitates the update process.

We don't pay special attention to the composition of the "Meow" block, just like in the "Ask," "Tell," and other blocks. If changes are needed in this block, we simply find the "Detect 'Meow'" block and make the necessary adjustments. This allows us to maintain flexibility and adaptability in our content.

There is an additional opportunity to create abstractions and highlight certain functions, especially in the "Repeat" block. The optimal solution is to pass information about the number of times the cat should meow to the "Meow" function. To do this, right-click on the "Define 'Meow'" block and select "Edit."

In the window that opens, click the "Add Value" button and enter the letter n in the top field. This value determines the number of times the meow should be emitted.

Now click the "Add Signature" button and enter the word "times" in the field that appears. This caption is for explanatory purposes only and does not perform any functional tasks.

Screenshot: Scratch / Skillbox Media

Click OK. The "Detect 'Meow'" block has now been renamed to "Detect 'Meow' n times." Let's add a "Repeat" element to this block and move the value n from the "Detect 'Meow' n times" block to its white field. Let's remove the "Repeat" block from the top of the program, and in the white field of the "Meow" block, we'll indicate the number of times the cat should meow.

Screenshot: Scratch / Skillbox Media

We have truly developed a high-quality program. Its functionality remains the same, but the code has become more concise and understandable.

Interactive communication with a cat

We will add the ability to interact with the cat. It will be nice if the cat meows when you hover the cursor over it, creating the feeling that you are petting it. This will add an element of play and realism, making interaction with a virtual pet more lively and exciting.

Using blocks in web design and content development allows you to structure information, making it more accessible and understandable for users. Blocks help organize content on a page, highlighting key elements and simplifying navigation. The use of blocks improves the user experience, which, in turn, has a positive impact on the site's SEO positions.

Optimizing content using blocks improves the readability of the text and allows you to highlight important points. Each block can contain a title, text, and images, making the information more appealing and interesting to visitors. A proper content structure based on blocks helps retain user attention and reduces bounce rates.

When creating blocks, consider not only visual aspects but also SEO factors. Using keywords in block titles and text, as well as optimizing images, will improve your page's visibility in search engines.

In conclusion, integrating blocks into your content is an effective way to improve the structure and visibility of your website, which will ultimately lead to increased traffic and conversions.

  • "When the green flag is clicked" from the "Events" panel.
  • "If then" from the "Controls" panel.
  • "Mouse pointer touches" from the "Sensors" panel.
  • "Play the "Meow" sound until the end" from the "Sound" panel.
  • "Repeat forever" from the "Controls" panel.

Creating a program is an important step in achieving your goals. The program should be clearly structured and take into account all the key points. It is important to define the main tasks, deadlines for their completion, and those responsible. It is also necessary to foresee possible risks and ways to minimize them. An effective program will help optimize processes and ensure the desired results. Please approach the creation of the program carefully so that it is as effective as possible and meets your expectations.

Screenshot: Scratch / Skillbox Media

Now, when we click on the green The cat will meow every time the cursor touches the flag. This will continue until we click the "Stop" icon, which is represented by a red circle next to the green flag. This feature adds interactivity and makes interacting with the element more lively and engaging.

To increase interactivity on the website, click the "Add extension" button and select the "Video recognition" option. This will allow you to integrate video recognition features, which will improve user interaction with the content.

Screenshot: Scratch / Skillbox Media

Move the "When video speed >" block from the Video Recognition panel and add the Play the Meow sound until the end option from the Sound panel.

Screenshot: Scratch / Skillbox Media

Now, when I pass my hand behind the cat's back, it will make a meowing sound.

Screenshot: Scratch / Skillbox Media

We sequentially break We break down the problem into its component parts and solve each of them. For example, what should a cat do? It should meow. What does this imply? The cat should make the sound "Meow" a certain number of times. When exactly should it meow? It happens when it is petted. How can we implement this? For this, we need the "Meow" function. In this way, we detail the process and find solutions for each part of the problem.

If you think in this way, you will be able to stay calm even when tackling large tasks or when there are many subtasks. Personally, I use this approach when developing software projects. This way of thinking helps me organize my workflow effectively and cope with any challenges.

Project development requires careful thought, so I begin by dividing the future program into modules, performing decomposition and creating a task list. Decomposition can be presented as pseudocode, written down on paper or in a text file, or thought through in my head without writing it down. After completing this stage, you can move on to solving a specific problem.

Homework

Practical assignments are available on the course website. We recommend actively completing them for a deeper understanding of the material being studied. This will help you consolidate your knowledge and improve your skills in your chosen field.

Summary

  • Scratch is an environment and language for visual programming.
  • Scratch helps you abstract from syntax and focus completely on your idea and the end result.
  • Operators in Scratch are defined by nice visual blocks.
  • Scratch is a "toy" tool; in reality, of course, serious software projects are not created with it.
  • An important stage in creating a program is decomposition, that is, breaking a large task into a set of smaller ones.

Study additional materials:

  • CS50 in Russian. Lecture 0.1. Basic Computer Science Concepts
  • Test for Old-Schoolers: How Well Do You Remember Old Computer Technologies?
  • Creating Your First Game with Python and Pygame