Python Validation Workbook (Without
Regex)
📘 Introduction
This workbook is designed to help you master manual data validation in Python without
using regular expressions. You will practice writing logic for validating inputs like email,
phone number, password, IP addresses, and more.
14-Day Practice Plan
Day 1: Learn string basics: split, strip, isdigit, isalpha
Day 2: Email validation logic without regex
Day 3: Phone number validation logic
Day 4: Password strength checker (length, upper, lower, digit, special)
Day 5: IP address validator
Day 6: Date format and range validation
Day 7: Vehicle registration number (India-specific format)
Day 8: PAN card and Aadhaar validation (India-specific)
Day 9: URL validator (http/https + domain logic)
Day 10: CSV line validator (validating multiple fields in a row)
Day 11: Build a reusable validation module (Python package style)
Day 12: Make a CLI tool: choose validator type and input
Day 13: Create GUI form (Tkinter) for validation checks
Day 14: Project: Combine all validators into a full tool
💡 Practice Problems
1. Write a function to validate email addresses without regex.
2. Write a function to check if a phone number is 10 digits and only contains numbers.
3. Write a password checker that returns True only if it has at least 8 characters, 1
uppercase, 1 lowercase, 1 digit, and 1 special symbol.
4. Check if an IP address is valid (IPv4 only).
5. Check if a date is in the format dd-mm-yyyy and the day/month values are valid.
6. Validate an Indian PAN card number (ABCDE1234F).
7. Check if a vehicle number is valid (KA01AB1234 format).
8. Validate a URL to check it starts with http or https and ends with a valid domain.
9. Create a reusable Python function to validate a CSV row with email, phone, and
password fields.
10. Write a program to read a text file and print out only the valid email addresses.