0:00
Hi guys, welcome to Python basics course
0:08
In this course, we'll be covering all the basics of Python, whether you are a new programmer
0:14
or you are planning to start Python. So this course is absolutely for you
0:21
So in the first lecture, we'll be taking a look at our Hello World program, or it's just
0:27
called as our first program. So you know that whenever we start something, we have to take the initiative
0:37
So in each programming language, if you're starting to learn any programming language
0:43
you have to write your first program, and that's basically called as a Hello World program
0:49
So in a Hello World program, or when we are coding our first program, we basically need
0:55
to print out or to display Hello World on the screen, and that's being turned as Hello
1:01
World program. Okay, I hope this is clear. And now, you know that in Python, or in any other language, we can do that
1:13
So now you see that whenever you do something, you need to have a tool, right
1:21
And in programming, right, we have tools, and that are basically called as functions
1:29
And each function, or each tool has a specific task. So in Python, we use a specific function to display something on screen
1:39
And that is a print function. So simply type in print and empty parentheses, then type your message that you want to display
1:49
on screen. So I want to display Hello World on the screen
1:52
And remember to enclose this text within double quotes, otherwise, we'll get an error, right
2:01
Or it will lead us to another concept that we should not be discussing in this lecture
2:07
So whatever you want to print out on the screen, just enclose that in double quotes, along
2:14
with double parentheses. And right, and that is being preceded by print function
2:21
I hope this is clear. This is the syntax of Hello World program
2:27
Simply type your function name that is print, and then empty parentheses
2:32
And inside of those parentheses, you need to type your message, enclose in double quotes
2:38
So if I run this code, we're going to get Hello World on our screen
2:43
So let's just do it and see the result. I want to run this code
2:47
Let me run it. And as you can see down below here, guys, we got our output and a result that is Hello World
2:56
That's actually a good news for all of us. Congratulations to everyone who has just learned how to code or how to or how to write your
3:05
Hello World program in Python. That's an absolute great news. So well, that was about print function
3:13
That was about our Hello World program. Well, there's another concept, a basic concept that I would like to touch
3:20
Well, what is that? That is about comments. So what are comments
3:26
What are basically comments, right? Comments are actually a single line or more than a single line, right
3:34
That's being ignored by the compiler during the execution, right? So why
3:41
Why are we having comments? Well, it's for you. It's for you to help you, right
3:49
It's for you and for other viewers who view your code, who read through your code
3:55
If you're writing a complex code, right? If you're writing a very lengthy code, a complex program, so comments would help you to navigate
4:05
through your code or to understand each block of your code. So suppose this is a block of code or you can simply insert a comment
4:16
A comment here would be a suitable comment here would be Hello World program
4:21
So if anybody opens up my code, that would definitely understand that this code is all
4:27
about Hello World program. So we insert comments in certain portions of our code just to help you understand your code
4:38
So that's the purpose of comments. I hope this is clear. So that was all for now
4:45
I mean, that was our first lecture and in the upcoming lecture, we will take a look
4:50
at what are variables and how to work with variables. That's another basic concepts
4:57
As you know that we're going through the basic scores of Python, so we have to cover all
5:02
of these topics. So are you with me? Do you want to complete this course with me
5:10
Let me know in the comments. And if you enjoyed this lecture, give it a thumbs up
5:16
Subscribe me for more awesome content and I will see you on the other one
5:24
Thank you for watching