Problem: Symmetric Difference in python ObjectiveToday, we’re learning about a new data type: sets. Concept If the inputs are given on one line separated by a character (the delim... Read more
Problem: No idea in Python There is an array of integers. There are also 2 disjoint sets, A and B, each containing m integers. You like all the integ... Read more
Floor, Ceil and Rint floorThe tool floor returns the floor of the input element-wise.The floor of x is the largest integer i where i<=x . ceilThe tool... Read more
Problem: Sum and Prod sum The sum tool returns the sum of array elements over a given axis. By default, the axis value is None. Therefore, it performs a sum over all the dimen... Read more
Min and Max Problem The tool min returns the minimum value along a given axis. By default, the axis value is None. Therefore, it finds the minimum over all the dimensions of t... Read more
Capitalize first letter of each word in a string. You are asked to ensure that the first and last names of people begin with a capital letter in their passports. For example, alison hec... Read more
Find a String In this challenge, the user enters a string and a substring. You have to print the number of times that the substring occurs in the given string. String traversal will take pla... Read more
Problem: Finding the Percentage The provided code stub will read in a dictionary containing key/value pairs of name:[marks] for a list of students. Print the average of the marks array for t... Read more
Given the participants’ score sheet for your University Sports Day, you are required to find the runner-up score. You are n given scores. Store them in a list and find the s... Read more
First Factorial Factorial of a number in Python Have the function FirstFactorial(num) take the num parameter being passed and return the factorial of it. For example: if... Read more