Python | Convert case of elements in a list of strings

[ad_1] Given a list of strings, write a Python program to convert all string from lowercase/uppercase to uppercase/lowercase. Input : [‘GeEk’, ‘FOR’, ‘gEEKS’] Output: [‘geeks’, ‘for’, ‘geeks’] Input : [‘fun’, ‘Foo’, ‘BaR’] Output: [‘FUN’, ‘FOO’, ‘BAR’]  Method #1 : Convert Uppercase to Lowercase using map function    out = map(lambda x:x.lower(), [‘GeEk’, ‘FOR’, ‘gEEKS’]) … Read more

Finding Mean, Median, Mode in Python without libraries

[ad_1] In this article, we will learn how to calculate Mean, Median and Mode with Python without any using external libraries. Mean : The mean is the average of all numbers and is sometimes called the arithmetic mean. This code calculates Mean or Average of a list containing numbers: n_num = [1, 2, 3, 4, … Read more

Cohesity internship interview

[ad_1] Here you will find details about the Cohesity internship interview experience, questions with their possible solutions are discussed here: Round 1: The first round was an online round held on Hackerearth. It had 2 questions of easy-medium level. Easliy solvable with decent coding skills. Round 2: This was a Zoom online interview round lasting … Read more