Skip to main content

Introduction to Python

Lesson 1 - Introduction to Python


Hello Guys, I hope you all are doing well. My Name is Vivek Garg and I welcome you all to my Blog Mostly Programing. If you're new here I will suggest you check out my YouTube channel @mostlyprograming. I post 3 New Videos every week, Let's Code Tuesdays, Innovative Thursdays, and Geeky Saturdays. 
Go! Go! Go! Check it out and if you like the content you can maybe give me a subscription or a comment or a like (YOU DECIDE!).

Here in Lesson 1 of Learning Python from scratch we will be discussing some basics about Python, Its Applications, Also we will see why do we use Python and How is it different from any other Programming Languages?
Also, we will Install Python in our System.

What is Python?

Python is a general-purpose Programming language as it supports all the programming paradigms, it is a popular scripting language, as it is used for writing scripts for automation purposes. It was created by Guido van Rossum in 1989 in The Netherlands and that too out of frustration of writing Machine Codes. Python was released in 1991.
Applications
  • Web Development (Server-side)
  • Machine Learning and Data Science
  • Mathematics 
  • System Scripting
  • Designing Automated system Applications 
  • Creating web applications.
  • Python can also be used along the Database to Modify and Read files.
  • Micro Python is also being used for Programming Arduino Microcontrollers.

Why Python?

  • Python can work on different platforms (Say Windows, Raspberry Pi, Mac, Linux, etc.)
  • Python is here to stay and python is the Future's Language (as it is being used for ML and Data Science).
  • Syntax of Python is like the general English Language.
  • Python scripts are comparatively shorter than programs written in any other language.
  • Python runs on an Interpreter (unlike C, C++). In Python, the script is executed as soon as it was written. Makes it very fast.
  • C Program to add two numbers
  • Python Script to add two Numbers
Comparison of Python Syntax with the syntax of other Programing Languages 
  • More Readability and Easy Understanding.
  • In Python, we don't need to use Semicolons as statement terminators instead a new line acts as a Statement terminator.
  • In Python we do not use curly braces to show the scope of functions or loops instead here we use the concept of Indentation (basically white spaces will be discussed later).

Installing Python

Follow these simple steps to Install Python in your System:
  1. Go to the official website of Python.
  2.  Then click on the Downloads Tab as shown in Fig. 1
  3. Downloads > Windows > Download Windows x86-64 executable installer (or 32 bit if your PC is 32 bits).
  4. Download the executable file from the Link given in Step 3.
  5. Then You Simply have to install it, Just Make sure while installing you Add python 3.9 to Path. Refer to the YouTube Video embedded below.
Fig. 1 The Download Page 

YouTube Video


Also, If you have any queries, feel free to comment down below and I will try my best to solve, or you can directly DM me at my social media accounts.

Twitter    



Content Creator: Vivek Garg

Comments

Popular posts from this blog

JoyStick HW-504 Interfacing with Arduino

JoyStick HW-504 Interfacing with Arduino Hello Guys, I hope you all are doing well. My Name is Vivek Garg and I welcome you all to my Blog Mostly Programing. If you're new here I will suggest you to check out my YouTube channel  @mostlyprograming . I post 3 New Videos every week, Let's Code Tuesdays, Innovative Thursdays, and Geeky Saturdays.  Go! Go! Go! Check it out and if you like the content you can maybe give me a subscription or a comment or a like (YOU DECIDE!). So, In Today's Tutorial, We are going to see How a PS2 Thumb Joy Stick Works? and How we can use one with an Arduino. Fig. 1 HW - 504 Thumb JoyStick Module When we hear the word joystick, the first thing that strikes our mind is Game Controllers (Like the one shown in Fig. 2). Mainly we use them for playing Games but we can do a lot of fun stuff with them in Electronics. For instance Controlling Robo Cars, Controlling Barrier Gates, etc. Fig. 2 Game Controller Hardware Overview The

Flappy Bird Game with Arduino Uno

Flappy Bird Game with Arduino Uno Hello Guys, I hope you all are doing well. My Name is Vivek Garg and I welcome you all to my Blog Mostly Programing. If you're new here I will suggest you to check out my YouTube channel  @mostlyprograming . I post 3 New Videos every week, Let's Code Tuesdays, Innovative Thursdays, and Geeky Saturdays.  Go! Go! Go! Check it out and if you like the content you can maybe give me a subscription or a comment or a like (YOU DECIDE!). So, Today we are gonna build a fun game with Arduino. This game is called The Flappy Bird game, I bet you must have played this game in your childhood. And if not you can make one today and play. Components Required 1 x BreadBoard 1 x Arduino Uno Board 1 x I2C LCD Display (16x2) 1 x 10 KOhm Resistor 1 x Push Button Jumper Wires USB A/B Cable Circuit Diagram Fig. 1 Circuit Diagram Connections: SCL(LCD) ---> A5/SCL Pin SDA(LCD) ---> A4/ SDA Pin Vcc (LCD) ---> +5Volts Gnd

How to use a Push Button with Arduino

How to use a Push Button with Arduino Hello Guys, I hope you all are doing well. My Name is Vivek Garg and I welcome you all to my Blog Mostly Programing. If you're new here I will suggest you check out my YouTube channel  @mostlyprograming . I post 3 New Videos every week, Let's Code Tuesdays, Innovative Thursdays, and Geeky Saturdays.  Go! Go! Go! Check it out and if you like the content you can maybe give me a subscription or a comment or a like (YOU DECIDE!). In today's tutorial, we are going to see how a push-button works. I know that may sound quite easy to some of you but believe me, it's not as easy as it seems to be (especially for the Newcomers).  So, Today we will be seeing  What is a push-button? How it works? What different configurations can it work in? How to interface one with an Arduino? Also, How to read its status using a software program? How do we control an LED using a Push Button? Let's get started with the Tutorial.