Computer Science, asked by kripa1048, 10 months ago

What are datatypes in Python?How are they important?

Answers

Answered by BRAINLYBOOSTER12
1

Answer:

int, double, float, char, string.

They are important for declaring variables.

Answered by Anonymous
1

What are data types in Python?

  • Data types in Python are a specific group or category of several data item.

  • To get type of any object we use this "()" function.

In data types there are of several types as follows:

  • Text type.
  • Numerical type.
  • Set type.
  • Binary type.
  • Boolean type.
  • Mapping type.
  • Sequence type.

Example:

  • Printing the data type of variable "a".

  • Let's take a as a variable.

  • Let the value of variable (a) be (1).

a = 1

print (type (a))

The first "(" for closing the text form "type - end" and the second "(" in between is used to close the variable only.

#Python is a simple language try learning it :)

Similar questions