Fourth Assignment
Fourth Assignment
that each
digit of the number is an even number.
2) Write a Python program to print Prime Numbers within given range such as accepting two inputs from
user and print in that range?
3) Write a Python Program to display which letters are present in both the strings by accepting two strings
from user?
4) Write a Python Program to find the factors of a number by accepting input from the user?
5) Write a Python program to count the even numbers in the list by accepting list as input from the user?
6) Write a Python program which iterates the numbers from 1 to 50 (including 50).For multiples of 3 print
"Codegnan" instead of number in output, and for the multiples of five print "Python". For numbers which
are multiples of both three and five print "I love Codegnan".
7) Write a Python program to convert month name to a number of days by accepting month name from the
user?
8) Write a program which accepts a sequence of comma-separated numbers from console and generate a
list and a tuple which contains every number.
14,7,5,33,22,8
9) Write a Python Program to accept two numbers from user and find the sum and product of two numbers,
your code should be in two lines only?
10) write a program that displays all leap years from 1900-2101 along with the count of leap years in given
range by satisfying all the conditions for a Leap year?