Professional Documents
Culture Documents
Practic Le
Practic Le
5 Write a program to input the value of x and n and print the sum of 12-15
the following series:
⮚ 1 + x + x2 + x3 + x4 +……..xn
⮚ 1 – x + x2 – x3 + x4 -………..xn
⮚ x + x2 / 2 + x3 / 3 + x4 / 4+………….xn ./ n
⮚ x + x2 / 2! + ……..xn / n!
6 Determine whether a number is a perfect number, an Armstrong 15-17
number or a palindrome.
7 Input a number and check if the number is a prime or composite 18
number.
8 Display the terms of a Fibonacci series. 19-20
Database Management
29 GROUP BY and find the min, max, sum, count and 47-48
average.
Python-MYSQL Connectivity