Chapter 15
Chapter 15 - Tuples
[Solutions for the book "Cs with Python"
by Sumita Arora for class 11]
Page 446
Q1) Write a Python program that creates a tuple storing first 9 terms of Fibonacci series.Solution :
#Fibonacci Series 9 terms using Tuple
[CODE WILL BE ADDED SOON]
Q2) In continuation to above program, write a new functions in it for the following :
(a) Write a function that receives the index and returns the corresponding value.
(b) Write a function that receives a Fibonacci term and returns a number telling which term it is.
Solution :
[CODE WILL BE ADDED SOON]
Q3) Write a program that interactively creates a nested tuple to store the marks in three subjects for five students.
Solution :
[CODE WILL BE ADDED SOON]
Q4) In the program created in previous question, add a function that computes total marks and average marks obtained by each student.
Solution :
[CODE WILL BE ADDED SOON]
bakwash
ReplyDeletebakwass website
ReplyDeleteghatiya
ReplyDelete