Write a python function that accepts a string from user as argument and display the total number of words. # Write a python function that accepts a string from user as argument and display the # total number of words. inn = input("enter the wo…
Write a Python function to print the numbers of a specified list after removing even numbers from it. # Write a Python function to print the numbers of a specified list after removing even numbers from it def re(): li = [1,2,3,4,5,6,7,8,9] …
Write a python function that takes two lists and prints True if they have at least one common member. # Write a python function that takes two lists and prints True if they have at least one common member. def k(): li1 = [1,2,3,4,5] …
Write a python function to find the minimum number of a list. # Write a python function to find the minimum number of a list. def sm(): list2 = [166,22,4,66,77] small = list2[0] for i in…
Write a python function that takes a list from the user and then calculates the average of the list. def ave3(): list2 = [] sum2=0 z = int(input("size of the list")) for i in range (z): inn = int(input(&q…
Write a python function which calculates the factorial of a number. # Write a python function which calculates the factorial of a number. def fact2(): fa = 1 x = int(input("enter the number&qu…
Write a python function to calculate the sum between 2 numbers. # Write a python function to calculate the sum between 2 numbers. z = int(input("enter the number")) x = int(input("enter…