What are rhe four data type …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Rahul Saini 4 years, 3 months ago
- 1 answers
Related Questions
Posted by Hanni Pham 4 months, 1 week ago
- 1 answers
Posted by Priya Shukla 5 months, 2 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 1 week ago
- 0 answers
Posted by Prawar Narang 6 months, 2 weeks ago
- 1 answers
Posted by Kandeepan Jothivel 6 months, 3 weeks ago
- 2 answers
Posted by Syedali Fathima 5 months, 3 weeks ago
- 1 answers
Posted by Manoj Kumar Manoj Kumar 7 months, 2 weeks ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Gaurav Seth 4 years, 3 months ago
Python has the following standard or built-in data types:
Numeric
A numeric value is any representation of data which has a numeric value. Python identifies three types of numbers:
Complex number: A number with a real and imaginary component represented as x+yj. x and y are floats and j is -1(square root of -1 called an imaginary number)
Boolean
Data with one of two built-in values <code>True</code> or <code>False</code>. Notice that 'T' and 'F' are capital. <code>true</code> and <code>false</code> are not valid booleans and Python will throw an error for them.
Sequence Type
A sequence is an ordered collection of similar or different data types. Python has the following built-in sequence data types:
Dictionary
A dictionary object is an unordered collection of data in a key:value pair form. A collection of such pairs is enclosed in curly brackets. For example: <code>{1:"Steve", 2:"Bill", 3:"Ram", 4: "Farha"}</code>
type() function
Python has an in-built function type() to ascertain the data type of a certain value. For example, enter <code>type(1234)</code> in Python shell and it will return <code><class 'int'></code>, which means 1234 is an integer value. Try and verify the data type of different values in Python shell, as shown below.
1Thank You