Write a program that keeps on accepting a number from the user until the user enters Zero. Display the sum and average of all the numbers. ''' Write a program that keeps on accepting a number from the user until the user enters Zero. D…
The natural logarithm can be approximated by the following series The natural logarithm can be approximated by the following series. If x is input through the keyboard, write a program to calculate the sum of the first seven terms of this series. &…
Write a Python Program to Find the Sum of the Series till the nth term Part 2 Write a Python Program to Find the Sum of the Series till the nth term: 1 + x^2/2 + x^3/3 + … x^n/n n will be provided by the user ''' Write a Python Program …
Write a program to calculate the sum of the following series till the nth term Write a program to calculate the sum of the following series till the nth term 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n! n will be provided by the user ''' Wri…
Assume a list with numbers from 1 to 10 and then convert it into a dictionary where the key would be the numbers of the list and the values would be the square of those numbers ''' Assume a list with numbers from 1 to 10 and then conv…
Write a program to merge two given dictionary ''' Write a program to merge two given dictionary ''' dict1 = { "a" : 1 , "b" : 2 , "c" : 3 } dict2 = { "d" : 4 , "e" : 5 , …
Write a program to swap the key value pair for max and min values ''' Write a program to swap the key value pair for max and min values Eg if the dict is like this {‘a’:1,’b’:2,’c’:3} Output should be {a:3,b:2,c:1} ''' …
Write a program to find histogram of a given set of numbers. Take bin size from user. Print the result in the form of a dictionary. ''' Write a program to find histogram of a given set of numbers. Take bin size from user. Print the res…
Write a function that accepts a string and returns the number of upper case chars and lower case chars as a dictionary ''' Write a function that accepts a string and returns the number of upper case chars and lower case chars as a dict…
Write a function that accepts a list of strings and performs Bag of words and convert it to numerical vectors ''' Write a function that accepts a list of strings and performs Bag of words and convert it to numerical vectors. https://e…
Write a dummy program that can perform login and registration using a menu driven program ''' Write a dummy program that can perform login and registration using a menu driven program ''' # Initialize a dictionary to sto…