Python Assignment For 3rd Sem
Python Assignment For 3rd Sem
Write a Python Program to read a number n and print and compute the series
7. “1+2+…+n=”.
Write a Python Program to read a number n and print and compute the series
8. “1+4+7+10…+n=”.
Write a Python Program to read a number n and print and compute the series
9. “5+10+15+…+n=”.
12. Write a program in python to calculate the Prime factor of a given number.
16. Write a program that takes two numbers and prints the LCM of two numbers.
17. Write a program that takes two numbers and prints the GCD of two numbers.
21. Write a program in python to calculate the perimeter in circle using math.pi
Write a program in python to input three positive integers a, b, and c , using
22. Pythagorean triples formula ( a2+ b2 =c2.) to generate all Pythagorean triples
in a certain range.
23. Write a program in python to check the number is Krishnamurthy or not.
Write a program to take a string as input and counts the number of vowels in a
29. string.
Write a program in python to accept three digits and print all possible
31. combination
Write a program in python to check whether a number is Pythagorean
32. triplets or not.
Write a program in python to take three inputs from the user and print the 1st
33. one in reverse and the 2nd string converted to upper case and the 3rd string
converted to lower case.
34. Write a program in python to ask user for two string and concatenate them.
Write a program in python to take two strings as input from the user and
35. print the 1st one twice and the other one thrice
Write a program in python to Use list comprehension to find all the odd
38.
numbers and numbers divisible by 3 from a list of numbers.