Computer Science, asked by akgamer3334, 5 months ago

1. What are data types? What are Python"s built-in core data types? (pls explain data types) [3]​

Answers

Answered by supikaur09
9

Answer:

In the Programming context, a Data Type may be defined as a classification that specifies which type of value a variable has, and what type of mathematical, relational, or logical operations can be applied to it without causing an error.

Python Data Types are mainly of 3 types: Boolean, integer, and string. These may also be called the core data types in Python.

  1. Strings

one of the core data types in Python are used to record textual information as well as arbitrary collections of bytes. Strings are also an example of what we call a sequence in Python—that is, a positionally ordered collection of other objects. Sequences in Python, maintain a left-to-right order among the items they contain: their items are stored and fetched by their relative position. Precisely speaking, strings are sequences of one-character strings; other types of sequences include lists and tuples.

2. Integers

there is effectively no limit to how long an integer value can be. Of course, it is constrained by the amount of memory your system has, as are all things, but beyond that an integer can be as long as you need it to be.

3.Boolean

Objects of Boolean type may have one of two values, True or False.

A value that is true in Boolean context is sometimes said to be “truthy,” and one that is false in Boolean context is said to be “falsy.”

Similar questions