Matching username requirements

Report a typo

You need to write a simple program that checks whether usernames match the requirements. The only requirement is that it has to begin with a letter.

  • If a username starts with anything but a letter, your program should return Oops! The username has to start with a letter.

  • Otherwise, output Thank you!

You will get a username as input. Print a correct response.

Sample Input 1:

12user

Sample Output 1:

Oops! The username has to start with a letter.
Write a program in Python 3
import re
___

Create a free account to access the full topic