Skip to main content

Python Programming Tutorial 1 || Learn How To Download Python and Your First Hello World Program

Welcome


So today here you are going to learn how to download python 3.x and Run your very first python program. 




Download Python and Print Hello World
Download Python and Print Hello World


Getting Started


Python is a high-level programming language and is widely being used by many programmers. Python was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code. Python is a programming language that lets developers work quickly and integrate systems more efficiently.

Downloading Python


Unlike Windows OS, many of the Linux OS and macOS python comes pre-installed.
To download python you could go on python.org and download python. But what I recommend is downloading python from Anaconda Distribution, which would not only provide you python but also gives you Sypder IDE, Jupyter Notebook, and many different python libraries. After you visit Anaconda Distribution scroll down to the installer menu



Once you see the above menu select your OS and Download Python 3.7 (or Python 3.x). Once The installer gets downloaded you could easily install python with the installer.

For Windows:

Now Open the Anaconda Prompt which comes with Anaconda and Run the below command to check whether Python is properly installed or not.



For Linux:

Open Your Terminal and type the below command:


For macOS:




How To Run Python Program


If You have downloaded python from Anaconda Distributions you could use either Spyder IDE or Jupyter Notebook to run python program else if you have downloaded python from python.org then you could use python IDLE else you can run the python program in your command line or terminal.

Let's make a Hello World Program:

Run the below program to see the output





Instead of printing Hello World you can whatever you want to like you can print your name.
For Example, your name is Amit. Write Amit instead of Hello World between the quotations.

Click on the Thumbnail below to watch the full tutorial in Hindi.







Comments

Popular posts from this blog

Decision Making || Python Programming tutorial 4

Welcome So today here you are going to learn decision making in python ( if, elif, if-else, nested if statements in python).  Decision-making statements in programming languages decides the direction of the flow of program execution. Decision-making statements available in python are  if, elif, if-else, nested if. Decision making in python if Statement if statement is the most simple decision-making statement. It is used to decide whether a certain statement or block of statements will be executed or not i.e if a certain condition is true then a block of statement is executed otherwise not. Syntax :     if   condition:             #Statements to execute  Here, conditions after evaluation will be either true or false. if statement accepts boolean values – if the value is true then it will execute the block of statements below it otherwise not. We can use  condition  with bracket ‘( )’ also. Flowchart:  Below we have given a small illustration

Taking input in Python || Comments in Python || Python programming tutorial 3

Welcome So today here you are going to learn how to take input from user in python. Taking input in Python Taking input in Python Developers often have a need to interact with users, either to get data or to provide some sort of result. Nowadays mostly programs use a dialog box as a way of taking input from users. While Python provides us with an inbuilt function to read the input from the keyboard. Note: Here we are talking about methods used in python 3.x input(): This function is used to take input from the users in python 3.x. When input() function executes program flow will be stopped until the user has given input.  The important thing which you have to keep in mind is, Whatever you enter as input, input() function convert it into a string . Even if you enter an integer value still input() function converts it into a string. You need to explicitly convert it into an integer in your code using typecasting. Run the program below and try it yourself.