TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Finding The DataType In Python
Sr Karthiga
Mar 06, 2020
6.4
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, you will learn how to find the datatype in Python.
datatype.zip
Introduction
In this blog, I will explain how to find the data type in Python. It will clearly display in the run module which type of the datatype appears in the program.
Software Requirement
Python2.7.11
Programming
print(
"Welcome To C#Corner....."
)
print(
"Finding Datatype :"
)
print(type(21))
print(type(21111111111111))
print(type(21.23))
print(type(
"C#corner"
))
print(type(
'j'
))
print(type(12j+2))
Explanation
Let us see the difference in the datatype.
print(
"Welcome To C#Corner....."
)
print(
"Finding Datatype :"
)
print(type(21))
In this code, I have to type the data as 21. Now, it will display in the run Window, i.e. which type of the data type is seen in the output.
Output 1
print(
"Welcome To C#Corner....."
)
print(
"Finding Datatype :"
)
print(type(21))
print(type(21111111111111))
In this code, I have to type the data as 21111111111111111. Now, it will be displayed in the run Window; i.e. which type of the data type is seen in the output.
Output 2
print(
"Welcome To C#Corner....."
)
print(
"Finding Datatype :"
)
print(type(21))
print(type(21111111111111))
print(type(21.23))
In this code, I have to type the data as 21.23. Now, it will be displayed in the Window i.e. which type of the data type is seen in the output.
Output3
print(
"Welcome To C#Corner....."
)
print(
"Finding Datatype :"
)
print(type(21))
print(type(21111111111111))
print(type(21.23))
print(type(
"C#corner"
))
print(type(
"j"
))
In this code, I have to type the data as C#Corner. Now, it will be displayed in the Window i.e. which type of the datatype is seen in the output.
Final Output
DataType In Python
Python
Next Recommended Reading
How To Find IP Address In Python