Intoduction To Python

Introduction

In this blog, I am going to explain you about the basic input and output programming of Python language. Compared to other programming languages, Python is pretty simple and easy to learn. In general, we can say that Python is combination of several other languages. All the programming languages will work under the same concepts. Thus, you don't need to worry about anything. Just learn the concepts and you can make use of them in other programming languages.

Display text

A programmer must make a program user friendly. To make the program user friendly, the user needs to display some text to the user. The code, which is used to display the text is as follows:

print("The data which is to be displayed")

Display text

The piece of code, given above, will simply display whatever the data is written between the quotes. You can use even single quotes there in place of double quotes.

Getting input

We need to get an input from the user in some cases. For this, we can make use of an input command. Basically, we need to use some variable to store the data,  which we give as an input. The variable will reserve some memory space for the data. The input code is as follows:

variable_name=input("Enter your input")

An example for the syntax, mentioned above, is :

a=input("Enter you'r name")

Getting input

In the next post, I will explain, how to play with the concepts of date and time. Thank You.

Ebook Download
View all
Learn
View all