Built in Data types
Built in Data types
When we create a program, we often like to store values so that it can be used later. We use objects to capture data, which then can be manipulated by computer to provide information. By now we know that object/ variable is a name which refers to a value.
Every object has:
A. An Identity, - can be known using id (object)
B. A type – can be checked using type (object) and
C. A value
Let us study all these in detail
A. Identity of the object: It is the object's address in memory and does not change once it has been created.(We would be referring to objects as variable for now)
B. Type (i.e data type): It is a set of values, and the allowable operations on those values. It can be one of the following:
Qus. 1 : Which of these in not a core data type in python?
- Lists
- Dictionary
- Tuples
- Class
- int
- bool
- void
- None
- round(45.8)
- round(6352.898,2,5)
- round()
- round(7463.123,2,1)
- int
- float
- bool
- dict
- list
- tuple
- class
- dictionary
- Built in datatype
- Derived datatype
- Concrete datatype
- Abstract datatype
- Variable
- Literals
- Identifiers
- Comment
- Number
- String
- List
- Slice
- Class
- List
- Dictionary
- Tuple
- Docstring
- Python Package Index
- both a & b
- none of the mentioned
- <class 'int'>
- <class ‘str'>
- <class ‘bool'>
- Error
Programs
python program to input a welcome message and print it
python program to print number of seconds in year
Python program to calculate GST Goods and Service Tax
python program to find the ASCII Value of entered character
python program that display a joke but display the punch line only when the user presses enter key
python program to generate the following output 5 10 9
python program to print 5@10@9