Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Finding The DataType In Python
WhatsApp
Sr Karthiga
4y
6.4
k
0
2
25
Blog
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
Up Next
How To Find IP Address In Python
Ebook Download
View all
Python Overview
Read by 710 people
Download Now!
Learn
View all
Membership not found