Practice Programs

34. Write a python program to print flatten a nested list

33. Write a python program to counting item occurrences

32. Write a program to print swapping variables

31. Write a program to merging dictionaries

30. Write a program to check armstrong numbers in certain interval

29. Write a Python Program to check armstrong number of n digits

28. Write a Python Program to find the factorial of a number using recursion

27. Write a Python Program to print Palindrome numbers from 1 to 100

26. Write a Python program to print reverse number

25. Write a Python program to print fibonacci series

24. Write a Python program to count number of digits in an integer

23. Write a Python program to check whether a character is an alphabet or not

22. Write a Python program to count number of vowels in the given string

21. Write a Python program to remove duplicates from a list

20. Python Program to Replace all Occurrences of ‘a’ with $ in a String

19. Write a Python program sort a list in descending order

18. Write a Python program to get current time and date

17. Print out a set containing all the colors from a list which are not present in other list

16. Write a Python program that concatenates all elements in a list into a string and returns it.

15. Write a Python program that checks whether a specified value is contained within a group of values.

14. Write a Python program to test whether a passed letter is a vowel or not.

13. Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.

12. Write a Python program to count the number 4 in a given list.

11. Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.

10. Write a Python program to get the volume of a sphere with radius six.

9. Write a Python program to calculate the number of days between two dates.

8. Write a Python program that prints the calendar for a given month and year.

7. Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.

6. Write a Python program to display the first and last colors from the following list.

5. Write a Python program that accepts a filename from the user and prints the extension of the file.

4. Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.

3. Write a Python program to display the current date and time.

2. Write a Python program that calculates the area of a circle based on the radius entered by the user.

1. Write a Python program to find out what version of Python you are using.




For latest job updates join Telegram Channel: https://t.me/sateeshm