Python Assignments
Python Assignments
Between 400 to 1000 find the number divisible by 3 but not multiple of 5, output
should be single line seperated by comma
2. Get number in runtime as input and create dictionary (i,sqaure i)
EX:
4
{1: 1, 2:4, 3:18, 4:256}
and write a program that returns a list that contains only the elements that are
common between the lists (without duplicates).
Make sure your program works on two lists of different sizes.
9. Ask the user for a number and determine whether the number is prime or not
10. Write a program that takes a list of numbers (for example, a = [5, 10, 15, 20,
25]) and makes a new list of only the first and last elements of the given list.
11. Write a program with function that takes a list and returns a new list that
contains all the elements of the first list minus all the duplicates.
12. Write a program with function that asks the user for a long string containing
multiple words.
Print back to the user the same string, except with the words in backwards order
Eg:
i/p:
I am Surendar
o/p:
Surendar am I