What is the datatype of variables num_new and num_sum?
Answers
Answered by
2
DATA TYPES IN PYTHON
Posted on October 5, 2020By knowledgealpha
Every value in Python has a datatype, data types are actually classes and variables are instance (object) of these classes.
There are various data types in Python. Some of the important types are listed below.
PYTHON NUMBERS
Integers, floating point numbers and complex numbers fall under Python numbers category. They are defined as int, float and complex classes in Python.
We can use the type() function to know which class a variable or a value belongs to. Similarly, the isinstance() function is used to check if an object belongs to a particular class.
Similar questions