WEBVTT

00:00.000 --> 00:05.000
Introduction to Sudo Code

00:05.000 --> 00:11.000
In this video, we will learn what Sudo Code is and why it's useful for planning programs.

00:11.000 --> 00:14.000
How to write simple Sudo Code using keywords.

00:14.000 --> 00:19.000
Apply Sudo Code to plan the logic for a basic programming problem.

00:19.000 --> 00:22.000
What is Sudo Code?

00:22.000 --> 00:29.000
Sudo Code is a simple way to write down the steps of a computer program using simple, structured language.

00:29.000 --> 00:33.000
It looks a little like programming, but it's not actual code.

00:33.000 --> 00:38.000
You focus on the logic without worrying about the strict rules of a real programming language.

00:38.000 --> 00:45.000
Why use it? It's easy to read and understand. It helps you plan your program before you write the real code.

00:45.000 --> 00:49.000
It works for any programming language.

00:49.000 --> 00:51.000
The basic rules.

00:51.000 --> 00:58.000
You don't have to memorize complex rules. Just use these simple keywords to make your steps clear.

00:58.000 --> 01:02.000
Input to get data from the user.

01:02.000 --> 01:07.000
Output or print to display information on the screen.

01:07.000 --> 01:13.000
If else and if used for making decisions.

01:13.000 --> 01:18.000
While and while, repeats a block of code while a condition is true.

01:18.000 --> 01:27.000
To keep it neat, we use indentation, capitalization, and even comments to explain the steps.

01:27.000 --> 01:30.000
How to write Sudo Code.

01:30.000 --> 01:34.000
Let's write Sudo Code to find out if a number is even or odd.

01:34.000 --> 01:36.000
Ask the user for a number.

01:36.000 --> 01:40.000
Print. Enter a number. Input number.

01:40.000 --> 01:44.000
If the number can be divided by 2 with no remainder, it's even.

01:44.000 --> 01:51.000
If number MOD2 is equal to 0, then print the numbers even.

01:51.000 --> 01:54.000
Otherwise, it's odd. Show the result.

01:54.000 --> 02:00.000
Else, print. The number is odd and if.

02:00.000 --> 02:03.000
Your plan for real code.

02:03.000 --> 02:07.000
Finally, Sudo Code acts as a blueprint for programming.

02:07.000 --> 02:14.000
Once you have the logic planned out, translating it into a real programming language like Python or JavaScript is much easier.

02:14.000 --> 02:18.000
In short, Sudo Code is your program's blueprint.

02:18.000 --> 02:25.000
It helps you plan the logic clearly before writing the actual code, making the whole process easier and faster.

