Comp CH 1 WS3
Comp CH 1 WS3
denominations can be used to make that money. For e.g. if the money
entered is 2560
Then output should be
2000 = 1
500 = 1
200 = 0
100 =0
50 =1
20 = 0
10 = 1
5 = 0
2 = 0
1 = 0
Hint : use % and // operator
Consider a list:
MyFamily = [“Father”,”Mother”,”Brother”,”Sister”,”Jacky”]
WORKSHEET-3
CH-PYTHON REVISION TOUR -1
6 What is ordered and unordered collection? Give example of each
Consider a Dictionary
Employee = {“Empno”:1,‟Name”:‟Snehil”,‟Salary”:80000}
Write statements:
7
(i) to print employee name
(ii) to update the salary from 80000 to 90000
(iii) to get all the values only from the dictionary
Num = 100
Isok = False
8 print(type(Num)) =
print(type(Isok)) =