Skip to content

CynthiaWahome/happyBirthday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Happy Birthday Generator

This Python script generates a happy birthday message for a given name. It uses emojis to enhance the message and ensures that the input name contains only letters.

Usage

  1. Clone the Repository: Clone this repository to your local machine.

  2. Navigate to the Directory: Open your terminal or command prompt and navigate to the directory where the script is located.

  3. Run the Script: Execute the script by running the following command:

    python happy_birthday.py
  4. Follow the Prompts: Enter your name when prompted to receive your personalized birthday message.

Requirements

  • Python 3.x

Functionality

  • The script prompts the user for their name.
  • It validates the input to ensure that it contains only letters and is not a number.
  • If the input is valid, it generates a birthday message with emojis and prints it to the console.

Emoji Usage

  • Love Emoji: "\U0001F60D"
  • Music Emoji: "\U0001F3B5"
  • Glass Emoji: "\U0001F942"

Note

  • If the input contains characters other than letters, the script will prompt the user to enter letters only.
  • If the input is a number, the script will display an error message.

Enjoy celebrating birthdays with this fun and interactive script!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages