Python Data Types and Identifier

Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python

Program 1

a=120
print(type(a))
a="Hello"
print(type(a))
a=12.34
print(type(a))
a=True
print(type(a))
a=False
print(type(a))
a=[12,3,4,5]
print(type(a))
a=(1,2,3,4)
print(type(a))
a={1,2,3,4}
print(type(a))
a=None
print(type(a))

Program 2

_a=10
print(_a)

roll_no=100
print(roll_no)
a1=100
a2=200
print(a1+a2)

aaaaaaaaaaaaa=5000
print(aaaaaaaaaaaaa)

 

If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *