This blog is for beginners, who are willing to learn python. Starting from day 1 to day 15. I am going to cover the all basic topics of python that will be helpful for beginners.
Day 1 :
Starting with a simple python code ->
Remember one thing, Python is a high-level programming language.
Like, if we see c/c++, we can check out that it’s a compiled language, but python is interpreted language.
- example 1:
print("Hello ,everyone")
output : Hello ,everyone
The format will be so simple like the upper one as we don’t need any “;” for ending our code.
- example 2:
print('Hii,Techies')
output: Hii ,Techies
So, from the upper code, if you see that I have used ‘ ’ — only single inverted commas. But if you see the very first example you can check out that I have used “ ” — double inverted commas. That means we can use both. But if you don’t use any commas to print, then you will get an error.
print(hii,all)
output:
You will get this type of error if you do not use commas in your code to print the text, this type of error is called a Name error.
That’s for day 1. Next day we will learn the Basic data types of Python.
Thank you.