Knowledgle

Computer · True or False?

In Python, the "int" data type cannot contain negative values

The answer is False.

Explanation

Python's "int" data type can store negative numbers. In Python, integers are signed and support an arbitrary precision, meaning there is effectively no maximum size or fixed bit-width limit.

Play the Computer quiz Or try today's daily challenge