0% found this document useful (0 votes)
3 views

Python - Day 2 & 3 (1)

The document lists various Python programming tasks, including calculating factorials, generating Fibonacci sequences, and checking for palindromes. It also includes challenge questions such as matrix multiplication and web scraping. Each task is designed to enhance programming skills through practical applications.

Uploaded by

abbub4924
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python - Day 2 & 3 (1)

The document lists various Python programming tasks, including calculating factorials, generating Fibonacci sequences, and checking for palindromes. It also includes challenge questions such as matrix multiplication and web scraping. Each task is designed to enhance programming skills through practical applications.

Uploaded by

abbub4924
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Programs to Work On

1. Factorial of a Number
Write a Python program to calculate the factorial of a given
number using recursion.
2. Fibonacci Sequence
Write a Python program to generate the Fibonacci sequence
up to a specified number of terms.
3. Palindrome Checker
Write a Python program to check if a given string is a
palindrome (reads the same backward as forward).
4. Prime Number Checker
Write a Python program to check if a given number is prime.
5. Reverse a String
Write a Python program to reverse a string without using any
built-in functions.
6. Count Vowels in a String
Write a Python program to count the number of vowels in a
given string.
7. Find the Largest Number in a List
Write a Python program to find the largest number in a list
without using the max() function.
8. Merge Two Dictionaries
Write a Python program to merge two dictionaries into one.
9. Check for Anagrams
Write a Python program to check if two strings are anagrams
of each other.
10. Binary Search
Write a Python program to implement binary search on a
sorted list.
Challenge Questions

1. Matrix Multiplication
Write a Python program to multiply two matrices.
2. Recursive Directory Listing
Write a Python program to list all files in a directory and its
subdirectories.
3. Web Scraping
Write a Python program to scrape the titles of the top 10
news articles from a news website (e.g., BBC News).
4. Data Analysis
Write a Python program to read a CSV file and calculate the
average of a specific column.
5. API Integration
Write a Python program to fetch weather data from a public
API (e.g., OpenWeatherMap) and display the current
temperature for a given city.

You might also like