Variables in python
Today we are going to discuss about variable and data types in Python language
In the previous tutorial we discussed about the usability and advanced functionalities of python and why big companies consider to make programs in Python .
if you did not access the tutorial then click here and see the tutorial first so that you can understand this tutorial easily. without any further delay let’s get started in this tutorial.
So what are variables ?
Variables are nothing but containers where we can store values for the limited time and can be for permanent with a specific data type this is the inexact definition of variables. Variables can be defined in a programming language by just defining any word with specific data type developers consider to make meaningful variables based on the allocated task to the variables for easy finding purpose.
Generally while declaring a variable you need also to declare the datatype of the variable but in Python you don’t need to declare the data type of the variable it doesn’t mean that in Python there are no data types it’s not that right at all there are data types in Python but you don’t need to declare that . Python automatically identifies the data type of your variable you declared before , so that there is no need to declare the data type but you can change the data type in Python in which you are willing to convert.
The data type word comes too much time right ?
If you are confused about data types then don’t worry I will clarify that for you now that we will discuss about what data types are in programming languages.
Generally in programming languages there are many types of data types. Some of them are int, str, double long etc . But in terms of the main data types of any programming language there are int str char float bool etc. The data types are basically used to clarify the type of any variable data used in programming languages . There are many kinds of data types because each data type consumes memory for their allocated memory size. In some cases it can be high and in some low it is different because of their work functionality. In Python variables can be declared as mentioned below :
a = “hello” (string)
b = 2 (int)
c = 10.5 (float)
d = True (bool)
e = “c” (char)
I used to make quotes in Visual Studio code. An open source fully-fledged IDE from Microsoft. If you want to download Visual Studio code then follow the link below. Now the code to declare a variable is mentioned below.
There are many data types in Python three types are :
- Str
- Int
- float
- complex
- list
- tuple
- range
- dict
- set
- frozenset
- bool
- bytes
- bytearray
- memoryview
Etc…
You can use all the data types in Python language. We will see each of them in detail in another tutorial, in upcoming tutorials.
That’s all for now see you in the next tutorial until then stay tune with me and don’t forget to get signed up.
Thank you,
From: Sayantan Biswas
Hello! I wish to say that this ppost is awesome,
great written andd come wit approximately all important infos.
I’d like to look extra posts like this! 🙂
more posts like this are coming soon, for now you can check out other posts.
Wow, amazing blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your web site is excellent,as well as the content.
I enjoy what you guys are usually up too. This type of clever work and
reporting! Keep up the very good works guyys I’ve added you guys to my own video.
Hello There. I found your blog using google. Thiis is an extemely well
written article. I’ll mazke sure to bookmark it aand return to read more of your useful information. Thanks for the post.
I’ll certainly return.
Fabulous, what a web site it is! This web site provides useful data to us, keep it up.
Nice post. I waas checking continuously this blog and I’m impressed!
Very useful information specially thee lqst part :
) I care ffor such info a lot. I was looking for this particular information for
a long time. Thank you and best of luck.
Pretty! This haas been an extremely wonderfl post.
Thanks for providing this info.
Igot this site from myy pal who shared wkth me concerning this website and now this time I am
browsing this website and reading very informative articles or reviews at this place.