Monday 27 September 2021

QUICK REVISION of the Informatics Practices Examination

QUICK REVISION of the Informatics Practices Examination

Data Types

Every value belongs to a specific data type in Python. Data type identifies the type of data which a variable can hold and the operations that can be performed on those data.

Number: - Number data type stores numerical values only. It is further classified into three different types: int, float and complex


Note – type() function is used to determine the type of data type.


Note: - 

  • Variables of simple data types like integer, float, Boolean etc. hold single value. But such variables are not useful to hold multiple data values.
  • Python provides sequence data types like Strings, Lists, Tuples, and mapping data type Dictionaries.

Sequence

  • A Python sequence is an ordered collection of items, where each item is indexed by an integer value. 
  • Ordered collection – Getting items in output are in same order as they specified in input.



·       Indexing – Each item can be accessed by using the indexing concept. We have mainly two types of indexing i.e., Positive and negative











 


 


 




QUICK REVISION of the Informatics Practices Examination

QUICK REVISION of the Informatics Practices Examination Data Types Every value belongs to a specific data type in Python. Data type iden...