The document lists basic Python programming exercises for practice, including tasks such as adding two numbers, calculating the area of a rectangle, and checking if a number is prime. It also includes programs for string manipulation, generating Fibonacci sequences, and working with lists. Overall, it serves as a guide for beginners to enhance their Python coding skills through practical examples.
The document lists basic Python programming exercises for practice, including tasks such as adding two numbers, calculating the area of a rectangle, and checking if a number is prime. It also includes programs for string manipulation, generating Fibonacci sequences, and working with lists. Overall, it serves as a guide for beginners to enhance their Python coding skills through practical examples.
1.Write a Python program to add two numbers entered by the user.
2.Write a Python program to find the area of a rectangle given the length and width. 3.Write a Python program to check whether a number is positive, negative, or zero. 4.Write a Python program to find the largest of three numbers. 5.Write a Python program to check if a number is even or odd. 6.Write a Python program to display the Fibonacci sequence up to a given number. 7.Write a Python program to count the number of vowels in a string. 8.Write a Python program to reverse a string. 9.Write a Python program to check if a given string is a palindrome. 10.Write a Python program to find the factorial of a number using a for loop. 11.Write a Python program to check if a given number is a prime number. 12.Write a Python program to find the sum of digits of a number. 13.Write a Python program to find the common elements between two lists. 14.Write a Python program to generate a multiplication table for a given number. 15.Write a Python program to create a list of squares of numbers from 1 to 10. 16.Write a Python program to remove duplicates from a list. 17.Write a Python program to find the largest element in a list 18.Write a Python program to sort a list of numbers in ascending order. 19.Write a Python program to concatenate two lists. 20.wirte a python program that displays a square roots of number from a given range.