Thursday, December 21, 2017

Other Data Types in Python

We went over some data types such as integers,strings,floats.ther are more types in python.i will give breife over view then.

For numbers we have gone through integers and float.we also have type called complex which denotes complex numbers.So other types are

complex
long # only in Python 2
bytes and bytearray

tuple = (3, 5, 1 ,"Abhinaw") similar to list but immutable.cannot change there values.

set and frozenset

set([3,2,3,1,5]) == (1,2,3,4,5)

So I tried to represent all data types but remember there are many things which I have not mentioned but in my next post .I will create Python app and provide source code.

No comments: