0% found this document useful (0 votes)
22 views

Fourth Assignment

The document contains a list of ten programming tasks in Python, each requiring specific functionalities such as finding even numbers, printing prime numbers, identifying common letters in strings, finding factors, counting even numbers in a list, iterating with conditional outputs, converting month names to days, generating lists and tuples from input, calculating sum and product of two numbers, and displaying leap years with their count. Each task is described with clear instructions for implementation. The tasks cover a range of basic to intermediate programming concepts.

Uploaded by

v.manohar792
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Fourth Assignment

The document contains a list of ten programming tasks in Python, each requiring specific functionalities such as finding even numbers, printing prime numbers, identifying common letters in strings, finding factors, counting even numbers in a list, iterating with conditional outputs, converting month names to days, generating lists and tuples from input, calculating sum and product of two numbers, and displaying leap years with their count. Each task is described with clear instructions for implementation. The tasks cover a range of basic to intermediate programming concepts.

Uploaded by

v.manohar792
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1) Write a program, which will find all such numbers between 1000 and 3000 (both included) such

that each
digit of the number is an even number.

The numbers obtained should be printed in a comma-separated sequence on a single line.

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.

Suppose the following input is supplied to the program:

14,7,5,33,22,8

Then, the output should be:

['14', '7', '5', '33', '22', '8']

('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?

You might also like