I have done three beginner Python projects: a BMI calculator, a file sorter, and a web scraping project. For these projects, I followed Alex The Analyst's videos on YouTube.
BMI Calculator
The BMI Calculator collects user input for name, height, and weight, computes the BMI, and provides feedback on whether the user falls within the normal or above-average weight range. ( I find it important to note that the BMI, while commonly used, has limitations, as it doesn't consider various factors such as age or sex that can influence weight. Therefore, please interpret the results with a grain of salt.)
Skills Used
- Variable Usage
- Conditional Statements
- String Manipulation
- Validation Checks
File sorter
The automatic file sorter project begins by taking a user-specified folder path on their computer. It proceeds to generate folders designated for text, image, CSV, and Python files. Following the creation of these folders, the project systematically organizes the files from the original folder into their corresponding categories within the newly created folders.
Skills Used
- Module Importation
- Utilization of Paths and Lists
- For Loop for Folder Verification
- Loop for File Iteration and Relocation
Web Scraper
The web scraping project functions by taking a website link, parsing its HTML content, and locating information within the initial table. Subsequently, it compiles this information into a CSV file for further use.
Skills Used
- HTML Parsing with BeautifulSoup
- HTTP Request with Requests
- HTML Navigation with 'find_all' Method
- List Comprehensions for Text Extraction
- Pandas DataFrame for Tabular Data
- Loop for Data Extraction and DataFrame Population
- DataFrame Export to CSV