Question: Write a Python program that accepts a string and calculates the number of uppercase letters and lowercase letters in the string. Write a Python program

Write a Python program that accepts a string and calculates the number of uppercase letters and lowercase letters in the string.

Write a Python program that accepts a list of numbers and returns the sum of all the even numbers in the list.

Write a Python program that accepts a list of strings and returns the longest string in the list.

Write a Python program that accepts a list of numbers and returns a new list containing only the numbers that are divisible by 3.

Write a Python program that accepts a string and checks whether the string is a palindrome or not.

Write a Python program that accepts a list of numbers and returns the second largest number in the list.

Write a Python program that accepts two strings and checks whether they are anagrams or not.

Write a Python program that reads a text file and counts the number of occurrences of each word in the file.

Write a Python program that accepts a list of integers and returns the product of all the numbers in the list.

Write a Python program that generates a random password of length 8, consisting of uppercase letters, lowercase letters, and digits.

Step by Step Solution

3.49 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below are the required programs for given question 1 Accept a string from user and calculate the number of uppercase and lowercase letters in a string def countlettersstring upperCase 0 lowerCase 0 fo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!