What are data types? Explain any two data types in Python
Answers
Answered by
3
Answer:
Explanation:
Data types are classifying the data items. There are many data types in python such as integer,float which are numericand also set,tuple,dictionary etc.,
1)Integers : It contains numbers..positive and negative
we can demonstrate it as a= 5
here a is variable
5 is value
and since its numeric its of integer type
2)Float : It contains numbers with decimals
For example b=3.14
where b is variable
3.14 is value
and it is of type float(as we can see decimal)
Tip : If you want to know which datatype a variable is ..simply print..type(variable_name) you will get that.
eg:a = 8
print("Type of a: ", type(a))
Output:
Type of a: <class 'int'>
Answered by
3
Answer:
i have this character in cod mobile
Attachments:
Similar questions