Computer Science, asked by gravitbadshah368, 8 months ago

What is the data type of print (type(10)) in python?

1. float
2. int
3. integer

Answers

Answered by uday7968
8

Answer:

float

Explanation:

float is the answer because 10 is a number and float are nothing but numbers so that's why float is the answer

Answered by halamadrid
4

The data type of print (type(10)) in python is an int.

  • In Python, numeric data type i.e. integer, float, char represents the data that has a numeric value associated with it.
  • Numeric value can be a floating number, an integer which can be negative as well as positive or even complex numbers. These values are defined as float, int, and complex classes in Python respectively.
  • The type() function always returns the type of the specified object, such as int, bool, float, list, tuple, complex, etc.
  • If the number would have been represented as a decimal like 10.0 or 5.43, then the type()  function would have returned the value float.
  • If the number would have been represented as a complex like 10+4i then the type()  function would have returned the value as a complex.
Similar questions