def myfun(): # Define the value of pi pi = 3.1415926535897931 # Define the radius of the sphere r = 6.0 # Calculate the volume of the sphere using the formula V = 4/3 * pi * r^3 V = 4.0/3.0 * pi * r**3 # Print the calculated volume of the sphere print('The volume of the sphere is: ', V) if __name__=="__main__": myfun()

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

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

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

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.

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

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

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

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

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

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

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

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