![]() ![]() W rite a program to obtain temperature of 7 days (Monday.sunday) and then display average temperature of the week. W rite a program to obtain principal amount, rate of interest and time from user and compute simple interest. Q 20 = What is sorting ? Name some popular sorting techniques. Data Handling Type C Sumita Arora Class 11 Computer science Information practices Solution Q1. What happens if you try to index a nonexistent key (D) ? What does Python do if you try to assign to a nonexistent key a (e.g., D='spam') ? Create a dictionary named D with three entries, for keys 'a' ‘b’ and ‘c’. def compute (num): if num 1 : return 1 else. You can understand recursive function by following program:. The Base case (or the stopping case) - ALWAYS REQUIRED. A recursive definition is a definition that is made in term of smaller version of itself. Q 18 = How is del D and del DI] different from one another if D is a dictionary ?ġ9. Recursive function: - A function is said to be recursive function if it calls itself. Q 17 = Dictionary is a mutable type, which means you can modify its contents ? What all is modifiable in a dictionary ? Can you modify the keys of a dictionary ? What is the condition to use tuples as a key in a dictionary ? ![]() Q 16 = Though tuples are immutable type, yet they cannot always be used as keys in a dictionary. Q 15 = What type of objects can be used as keys in dictionaries ? Q 14 = Why is a dictionary termed as an unordered collection of objects ? Q 13 = What is the difference between (30) and (30,) ? Q8 Write a short program that asks for your height in centimeter and then converts your height in feet and inches.(1 foot 12 inches, 1 inch 2.54 cm). Q7 Write the python program that accept marks in 5 subjects and output average marks. (d) what's the difference between a and a ? Q6 Write the python program that accept radius of a circle and print its area. If you are author or own the copyright of this book, please report to us by using this DMCA report form. ![]() This document was uploaded by user and they confirmed that they have the permission to share it. (a) what is the difference (if any) between a * 3 and (a, a, a)? Download Sumita Arora Class Xi Computer Science With Python Pdf. Q 11 = Discuss the utility and significance of Tuples, briefly. sumita arora informatics practices class 12 pdf download Sumita arora has revised. pdf Free 2021Sumita Arora C++ Class 12 PDF Book and Solutions. (viii) Remove the 5th state from the list and print that state's name. Download Sumita Arora Python Class 11 PDF Book 2020 2021. Do this as if you DO NOT KNOW where 'Gujrať is in the list. (vii) Add 'Haryana' to the list so that it appears before 'Gujrať. (vi) Add ‘Tripura’ so that it is the third state in the list. (v) Add 'Odisha' to the beginning of the list. (iv) Define a variable states2 that is initialized with 'Rajasthan', 'Gujrať, and 'Kerala'. complete chapter judicious pdf of class 12 COMPUTER SCIENCE WITH PYTHON due SUMITA ARORA Its an humble request guys ,please proper feedback to us so that we can improve. (ii) Now add 'Punjab' to the end of the list. (i) Define a variable named states that is an empty list. Q 10 = In the Python shell, do the following : Q 9 = What is the difference between a list and a tuple ? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |