datatypesinpython-210523130554
datatypesinpython-210523130554
IN
PYTHON
Data types
Dictionary
Integer Float Complex
1 Integer
2 Float
3 Complex
INTEGER
x = None
if x:
print("Do you think None is True?")
elif x is False:
print ("Do you think None is False?")
else:
print("None is not True, or False, None is just None...")
1 STRING
SEQUENCE 2 TUPLE
3 LIST
STRING
Ex- first_tuple=(2,3,4,6)
Method of Tuple
Python has two built-in methods that you can use on tuples.
Ex- List=[1,2,3,4]
O/P-List=[“Annu”, ”Mini”, 33, 44]
Creating a set-