Variables and Basic Datatype in Python

Published: 02 August 2021
on channel: Nuruzzaman Faruqui
605
12

In this Python tutorial, we are going to cover python variables. Actually, variables are one of the most fundamental concepts in programming, they're not specific to Python. You will find them in almost in every programming language. We use variables to temporarily store data in a computer's memory. We are going to create variables and then store four different types of datasets in those. That means this tutorial covers both python variables and basic datatype. You can read the article and get the code from here: https://www.scholarshipin.com/topic/v...

Variable Definition:
Python variable starts with a name followed by an equal symbol and a value. The following table shows the python variable definition with an example:

Variable Name Equal Symbol Value
age = 30

Basic Datatype:
We are going to learn the following basic datatypes in this article:
1. Integer: Whole number such as 1, 2, 3 etc.
2. Float: Decimal point number such as 2.5, 8.6 and so on.
3. String: It refers to set of text such as ‘Hello World’.
4. Boolean: True and false.

Let’s see how these datatypes are defined in python:
Datatype Example in python
Integer: age = 30
Float: weight = 72.5
String: name = “Nuruzzaman Faruqui”
Boolean: good_programmer = True

Understanding variable and datatypes are crucial for any programming language. This article covers the variable definition and basic datatypes in python. The concepts of this article will help you to be good at python.


On this page of the site you can watch the video online Variables and Basic Datatype in Python with a duration of hours minute second in good quality, which was uploaded by the user Nuruzzaman Faruqui 02 August 2021, share the link with friends and acquaintances, this video has already been watched 605 times on youtube and it was liked by 12 viewers. Enjoy your viewing!