Which of the following is NOT a Python data type?

Prepare for the Leaving Certificate Computer Science Test with a mix of flashcards and multiple choice questions, each designed to enhance learning. Discover tips and resources for success. Ace your exam with confidence!

The correct answer is that "Character" is not a distinct data type in Python. In Python, a character is not treated as a separate data type; instead, it is considered to be a string of length one. This means that single characters are simply strings with a single character contained within them.

In contrast, the other options represent standard built-in data types in Python. A string is used to store text data, a Boolean represents values of truth (True or False), and a float is used to represent decimal numbers. Each of these types has distinct functions and characteristics that are utilized in Python programming. Understanding the distinction between these data types is crucial for programming effectively in Python.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy