Identify the data types of the values given below:
3
3j
13.0
'13'
"13"
2+0j
Answers
Answered by
4
Answer:
3 -> It is of INTEGER data type
3j -> It is NOT a data type
13.0 -> It is of FLOAT data type
'13' -> It is of STRING data type
"13" -> It is of STRING data type
2+0j -> It is of COMPLEX data type
Explanation:
SOME ADDITIONAL INFORMATION:
Integer:
The data type which does not have a decimal.
Float:
The data type with a decimal representation.
String:
Any data enclosed within single quotes (' ') or double quotes (" ") is referred to as string.
Complex:
Any data of the form a+bj where a and b both are integers. a is the real part and b is the imaginary part of the data.
Similar questions