Sumita Arora Solution

An immutable data type is one that can not change after being created. Give three reasons to use immutable data.

(1) It saves memory space as in immutable types variable names are stored as reference to value object. (2) It is very useful to use as constant which remains same through out the program (3) Immutable data are quicker to access then mutable data.

An immutable data type is one that can not change after being created. Give three reasons to use immutable data. Read More »

13. What are Data types ? How are they important?
14. How many Integer types are supported by Python? Name them.

Data types are keywords which determines the type of data to be stored in a variable. It is important as it helps a program to manage memory efficiently and keep different types of data separate to process them precisely.Ans 14.Two types of Integers are supported in Python: (1) Integers (2) Boolean

13. What are Data types ? How are they important?
14. How many Integer types are supported by Python? Name them.
Read More »

Describe the concept of blocks and body. What is indentation and how is it related to block and body?

blocks are set of statements which can be part of another statement or function in a program. Indentation is a way to telling that a set of statement belongs to particular block by placing statement further right or left. Indentation helps a python program to understand them in which order each block or statement should

Describe the concept of blocks and body. What is indentation and how is it related to block and body? Read More »

error: Content is protected !!