Python Practice Programs
Practice Programs

84. Write a Python Program to find sum of array.

83. Write a Python Program for cube sum of first n natural numbers?

82. Write a Python Program to calculate the natural logarithm of any number.

81. Write a Python Program to calculate your Body Mass Index.

80. Write a Python Program to Find Factorial of Number Using Recursion.

79. Write a Python Program to Display Fibonacci Sequence Using Recursion.

78. Write a Python Program to Make a Simple Calculator with 4 basic mathematical operations.

77. Write a Python Program To Find ASCII value of a character.

76. Write a Python Program to Convert Decimal to Binary, Octal and Hexadecimal.

75. Write a Python Program to Find HCF.

74. Write a Python Program to Find LCM.

73. Write a Python Program to Find the Sum of Natural Numbers.

72. Write a Python Program to Find Armstrong Number in an Interval.

71. Write a Python Program to Check Armstrong Number?

70. Write a Python Program to Print the Fibonacci sequence.

69. Write a Python Program to Display the multiplication Table.

68. Write a Python Program to Find the Factorial of a Number.

67. Write a Python Program to Print all Prime Numbers in an Interval of 1-10.

66. Write a Python Program to Check Prime Number.

65. Write a Python Program to Check Leap Year.

64. Write a Python Program to Check if a Number is Odd or Even.

63. Write a Python Program to Check if a Number is Positive, Negative or Zero.

62. Write a Python program to convert Celsius to Fahrenheit.

61. Write a Python program to convert kilometers to miles.

60. Write a Python program to find the area of a triangle.

59. Write a python program to calculate average using python *args ?

58. Write a python program to display list of numbers and we want to return all the numbers from the list that are divisible by 2 and remove duplicates at the same time.

57. Write a python program to convert uppercase strings and we want to convert them into lowercase strings and remove duplicates ?

56. Write a python program to Checking if a File Exists or Not ?

55. Write a python program to merge nested lists ?

54. Write a python program to checking if a string is empty or not ?

53. Write a python program to Find Index Using Enumerate

52. Write a python program to print lowercase names

51. Write a python program to access news using python

50. Write a python program to sort list with sorted & lambda

49. How do you confirm if an object is iterable using code?

48. Write a python program to check memory sizes of list ,set ,tuple

47. Write a python program to print most frequent letter in a string

46. Write a python program to open a website using python

45. Write a python program to print properties and methods

44. Write a python program to print reserved keywords

43. Write a python program to checking internet speed

42. Write a python program to check two strings are Anagram or not

41. Write a python program to print Nsmallest numbers

40. Write a python program to print Nlargest numbers

39. Write a python program startswith and Endswith Methods

38. Write a python program to adding a thousand separator

37. Write a python program to find absolute value of a number in the list

36. Write a python program to Find the index of the smallest number in the list

35. Write a python program to Find the index of the largest number in the list

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