Page 176 - Information_Practice_Fliipbook_Class11
P. 176
3. Write a program that accepts as input the count of numbers (say, n) to be entered, followed by the numbers, and displays
the second largest number.
4. Write a program in Python that takes n as input from the user and prints first n elements of a Fibonacci sequence
0 1 1 2 3 5 8…………….
5. Write a Python Script to accept two numbers and display all prime numbers between those two numbers.
6. Write a program to accept a number and check whether it is a palindrome.
7. Write a program in Python to accept names and marks of 10 students and then display the following:
(i) Average Marks
(ii) The student with the highest marks
(iii) The student with the lowest marks
8. Write a program to accept the values of p and n as input from the user and then display the sum of given series:
2
n
4
3
1-p+p -p +p - ...p
9. Write a program to check whether a number is a perfect number or not.
(Note: A perfect number is positive and is equal to the sum of its divisors.)
10. Write Python programs to display the following patterns.
i. ii. iii.
iv. v.
In the following patterns, print each number in the pattern using two spaces:
vi. vii. viii.
162 Touchpad Informatics Practices-XI

