0% found this document useful (0 votes)
2 views1 page

Python Assignment

The document contains a set of Python assignment questions aimed at enhancing programming skills. It includes tasks such as finding odd numbers in a range, calculating the area of a circle, and generating random numbers. Additionally, it covers topics like string manipulation, dictionary creation, and file handling.

Uploaded by

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

Python Assignment

The document contains a set of Python assignment questions aimed at enhancing programming skills. It includes tasks such as finding odd numbers in a range, calculating the area of a circle, and generating random numbers. Additionally, it covers topics like string manipulation, dictionary creation, and file handling.

Uploaded by

Aarthy M
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Assignment Questions Set1

1. Write a program to find odd numbers between a given range

2. Write a program to print multiple of 7 and 5 between a given range.

3. Write a program to add 2 binary numbers

4. Design a function to find area and circumference of a circle where it reads the radius from
the user.

5. Design a function to find the sum of all elements in a list without using inbuilt function.

6. Write a program to delete the occurances of a given number from a list.

7. Write a program to find the number of words in a string.

8. Write a program to find the sum of digits in a given string

9. Define a function which can print a dictionary where the keys are numbers between 1 and
20 (both included) and the values are square of respective keys.

10. Define and test a function that takes a 3 digit number as arguement and checks whether the
number is paloandrome or not.

11. Write a python program to generate 10 random numbers b/w 1 to 20 and create a dictionary
where the key is generated num and the values are no. of occurance of generated number.

12. Find the sum of all prime numbers between a range given by user and print its value.

13. Write a function find_longest_word() that takes a list of words and returns the length of the
longest one.

14. Write a python program to calculate number of days between two dates?

15. Using lambda function find cube of given number?

[Link] a Python program to print even length words in a string.

[Link] a Python program to create a list of tuples from given list having number and
its cube in each tuple
[Link] a list of N+1 elements, in which N/2 elements are definitely repeating once. So
find the single element that doesnt repeat and return the value.

[Link] a Python program to copy odd lines of one file to other file.
[Link] Project : Create a csv file with characters in one column and corresponding ascii
values in other column. Read back the value and display on the python terminal
neatly.

Any Clarification: [Link]@[Link]

You might also like