Robotics & Artificial Intelligence
What do you understand by data type? List names of Python built-in data types.
Getting Started
1 Like
Answer
A data type specifies the types of data that may be stored in variables as well as the actions that can be performed on them. The range of values that a variable may contain and the amount of memory required to store the value is also determined by the data type of the variable.
The built-in data types in Python are int, float, complex, bool, string, list, tuple, dictionary, and set.
Answered By
2 Likes
Related Questions
Which keyword in Python is used to import a module?
- include
- input
- import
- system
Fill in the blanks:
- Python is a ……………. which means it may be used to create a broad variety of applications.
- ……………. frameworks are used for web development in Python.
- ……………. is a tool kit in Python for GUI development.
- The suitable data type to store only True or False is …………….. .
- Lists are ……………. and ……………. are immutable in Python.
What is the difference between list and tuple in Python? Explain with the help of an example.
Write a Python program to declare and print 'list', 'dictionary', and 'tuple'.