Learn Python Coding Language from beginner to advance, Part 1

Dream CoderDream Coder
5 min read

Have You also Been struggling to learn Python and didn’t know from where to start!

Here You will learn python Coding Language from beginner to advance with a lot of Interesting Projects like Automation, Telegram bots, AI Girlfriend and many more .

This is part 1 of our blog as it is difficult to cover whole python from beginning to advance.

So lets Get started.

What Is PYTHON ?

Its basically a programming language that helps us to connect to our computer and give them commands. As humans have languages like English, German, Japnese etc, to communicate through each other. Just like that computers also have a language to communicate through each other. Examples of programming languages are Python (our current language), Java, C++ etc.

Python is most popular among them as its a powerful and easy to learn programming language. (to be truth, its just a myth that its very easy 😂, but still its easy among other languages like C++ )

Whats a Syntex ?

Python syntax refers to the set of rules that define how a Python program is written and interpreted. It includes elements like indentation, variables, comments, and more.

Its basically the full sentences we use to do a task in python. For example “print(“Hey guys”)”, this code is used to print “hey guys” in python.

Where to Code ?

You can install Pycharm or Visual studio Code to run python in your pc

I am using a online Intepreter to explain you all.

lets move to our very first Function :

Adding Comments :

We can add comment anywhere in python using “#” .

By using a comment, the python program will ignore the words written in a comment.

Why to Use Comments: For example if you show or send your code screenshot to anyone, so by using a comment, the user who will see your code will understand what you have done in your program if you will describe your code with comments under the coding terminal.

What’s a “Print” Statement

Its a syntex used to print something as output in python.

we use Semicolons “” ‘’ in every code in python

For example :

As you can see, this function printed “Hello Chief” as our output in the terminal

SO this was our very first starting

lets move on to our second code

Declaring Variables :

In Python, variables are used to store data values. They act as containers for information that can be referenced and manipulated throughout your program.

It basically stores information in a name given by you. It can be a bit confusing but you will be clear within an example:

As you can see I have given a name “Hiro” and put some data in it. Now Whenever I wanted the data that I have stored in “Hiro”, I simply just need to use Print function without “” under the bracket print(Hiro).

Note: if you simply use print function with semicolons in the bracket then it will simply print “Hiro” and will not print the Data under it .

Input Function:

As we have learnt How to declare variables, Lets move to input function

Input function is used to take data from the user, its commonly used under a variable.

For Example:

Here I declared a variable named “name” and used input function and under bracket under semicolons I asked the user the question to ask user what’s their name. And I used print function to print their name along with greetings.

So now As I will enter my name here, It will print my name along with greetings that I have described under print functions:

As I entered my name, it immediately printed my name with greetings

I used f under ‘print(f””)’ to make things easier and to add greetings along with variable to print at the name time using {} brackets.

we sometimes also use int(input(“whats your age”)) to take data from user in the form of numericals.

First Project :

So as you have learned upto here, lets quickly recap and understand practically through a project

Lets Built a greeter bot with everything we have learnt yet :

print(“hello world”)

name = input(“What’s your name? “)

age = input(“How old are you? “)

dream = input(“What’s your biggest dream? “)

print(“Hello”, name + “! At age”, age + “, chasing ‘“ + dream + “‘ is amazing!”)

Copy and paste this small code to your interpreter and run it to see your greeter bot.

Enter the data asked in greeter and see the greeter bot performing the task.

Things to Remember :

Python can only be learnt by daily practicing and a lot of patience. As we will move further we can see many syntex errors which will be frustrating sometimes and force you to give up.

But always remember that If you wanna become a successful coder then you will never give up at any cost.

only 2% of world population become sucessful and you have to be a part of that 2%, not in those 98% who waste their time on stupid things.

Practice regularly!

Thats it for today’s Blog, See you in Part 2 of my Blog in which we will go more advance and built more advance projects.

You can check it out from my profile

Have a Good Day

0
Subscribe to my newsletter

Read articles from Dream Coder directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dream Coder
Dream Coder