About Lesson
EXERCISES
-
String Manipulation:
- Write a program that takes a user input string and prints it in reverse.
- Create a program that counts the number of vowels in a given string.
- Write a function that removes all punctuation from a given string.
- Develop a program that checks if a given string is a palindrome.
- Implement a function that capitalizes the first letter of each word in a sentence.
-
List Manipulation:
- Write a Python program to find the sum of all elements in a list.
- Create a function that removes duplicate elements from a list.
- Write a program to concatenate two lists.
- Implement a function that returns the maximum and minimum elements of a list.
- Develop a program that sorts a list of integers in ascending order.
-
Control Structures:
- Write a Python program to find the factorial of a number using recursion.
- Create a program that checks if a number is prime or not.
- Write a function that calculates the Fibonacci sequence up to a specified number of terms.
- Implement a program that prints the multiplication table of a given number.
- Write a Python program to find the greatest common divisor (GCD) of two numbers.
Join the conversation