Day 17(15.May.19)

Day Objectives:

    • Python Packages and Modules
    • Regular Expressions
    • Iterators and Generators


Programs:

  1. Postal Code
  2. Phone Number
  3. Define a function to validate email addresses based on the following rules.
        • Email should be in the format username@domain.extension username must start with an alphabet and can contain lowercase alphabet, digits, hyphen(-) and underscores( _ ). username must not contain special characters, uppercase letters, whitespaces. Length of username must be in the range (6, 16) Domain can only contain lowercase alphabet and digits with length in range (3, 10) . No special characters are allowed Extension can only contain lower case alphabet and its length must be in the range (2, 4) First line of input contains total number of email addresses n. Next n lines contain n email addresses.
        • Output must contain contain n lines with either 'Valid' or 'Invalid'

4.Password Validation

All the today's problems are solved in Python using Jupyter Notebook and can be accessed within Google Drive here and the code in Github