1. Input a welcome message and display it. 2. Input two numbers and display the larger / smaller number. 3. Input three numbers and display the largest / smallest number. 4. Given two integers x and n, compute 𝑥n. 5. Write a program to input the value of x and n and print the sum of the following series: 6.Determine whether a number is a : a) perfect number ( positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 + 2 + 3 = 6, so 6 is a perfect number.) , b) an Armstrong number or (153= 13+53+33= 1+125+27=153) c) a palindrome. (5335 = 5335 , 1001=1001, 189≠981) 7.Input a number and check if the number is a prime or composite number. 8. Display the first n terms of a Fibonacci series. 9. Compute the greatest common divisor and least common multiple of two integers. 10. Count and display the number of vowels, consonants, uppercase, lower case characters in string. Input a string and determine whether it is a palindrome or not; convert the case of characters in a string. 12. Find the largest/smallest number in a list/tuple 13. Input a list of numbers and swap elements at the even location with the elements at the odd location. 14. Input a list/tuple of elements, search for a given element in the list/tuple. 15. Input a list of numbers and test if a number is equal to the sum of the cubes of its digits. (Same as arm strong ) – 6 b 16. Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have marks above 75. 17. Write a Program to Print the following pattern. 18. Write a program to store makrs of students in two different lists find whether they are identical or not. 19. Write a program to count frequency of a character in a string 20. Write a program for number guessing game and give 3 chance to guess the randomly generate number between 1,100
ENDÂ
sign up!
We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.