Python Fundamental Practical Sumita Arora Solution Class 11
PIP :- 2.1
| S.no | Statement to be typed | Result | Reason |
|---|---|---|---|
| 1 | abc123 = 25 | ||
| 2 | abc123 | ||
| 3 | abc123 * 2 | ||
| 4 | print (abc123) | ||
| 5 | break = 10 | ||
| 6 | Break = 10 | ||
| 7 | break | ||
| 8 | print (break) | ||
| 9 | print (abc123 * 2) | ||
| 10 | 123abc = 20 | ||
| 11 | Val1 = 12.25 | ||
| 12 | Val1 | ||
| 13 | print (Val1) | ||
| 14 | Val2 = 0.05E+2 | ||
| 15 | Val2 | ||
| 16 | print (Val2) | ||
| 17 | elif = 'abc' | ||
| 18 | Name = "Riyan" | ||
| 19 | Name | ||
| 20 | print (Name) | ||
| 21 | Name * 2 | ||
| 22 | print (Name * 2) | ||
| 23 | String1 = "Text" | ||
| 24 | String2 = "Text \ That is spread across \ Multiple lines" | ||
| 25 | String3 = ‘’‘Another text that is also multiline text ’’’ | ||
| 26 | String4 = “””Third Multiline Text “”” | ||
| 27 | String5 = ‘’’HI There! \ Python \ Is fun! ‘’’ | ||
| 28 | String2 | ||
| 29 | String3 | ||
| 30 | String4 | ||
| 31 | String5 | ||
| 32 | String1 | ||
| 33 | print (String1) | ||
| 34 | print (String2) | ||
| 35 | print (String3) | ||
| 36 | print (String4) | ||
| 37 | print (String5) | ||
| 38 | len(String1) | ||
| 39 | len(String2) | ||
| 40 | len(String3) | ||
| 41 | len(String4) | ||
| 42 | len(String5) | ||
| 43 | A = None | ||
| 44 | A | ||
| 45 | print (A) | ||
| 46 | Chk = True | ||
| 47 | Chk | ||
| 48 | print (chk) | ||
PIP:- 2.2
P.I.P :- 2.3
Practice #1
| (a) | Output generated by four marked output statements in above code. | 1.2.3.4. |
| (b) | Output generated by three marked type statements in above code | 1.2.3. |
| (c) | Why is the output of output statement 1 different from output statement 2 when we have added 1 to variable Number? | |
| (d) | Why is the output of type statement 2 different from type statement 3 when we are displaying output of same variable myNumber? | |
| (e) | Assign values 2, 4, 8 to variables a, b and c in single statement. | |
| (f) | Swap the values of a, b, c through SINGLE STATEMENT so as they now hold values of c, a, and b respectively. | |
| (g) | In a new program there is just one statement given belowprint (value)But it is giving problem upon running the program. Could you tell, why? |
Answer is not given
ReplyDeletePlease, Check again. now problem has fixed.
DeleteThanks for your suggestion.
Where is the answer
ReplyDeleteClick on Question.
DeleteReally helpful 😊
ReplyDeleteWelcome : )
DeleteThe answers are not coming when I click on the question
ReplyDeleteWhich one ???
DeleteMine also answer not coming
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )