Question
Python Coding Question Holiday name generator. Write a program, either graphical or text-based, that tells the user their holiday name based on the below. Make
Python Coding Question
Holiday name generator. Write a program, either graphical or text-based, that tells the user their holiday name based on the below. Make sure the capitalization comes out right!
Your holiday name is Jingle[A] [B]muffin [C] where
[A] is the first four letters of your first name;
[B] is the last four letters of your middle name;
[C] corresponds to your birth month in the table below:
Month | Name |
---|---|
1 (Jan) | Sprinkles |
2 (Feb) | Gingerbread |
3 (Mar) | Twinkletoes |
4 (Apr) | McJingles |
5 (May) | Rosey-Cheeks |
6 (Jun) | Glitter-Eyes |
7 (Jul) | Hollypoo |
8 (Aug) | Snickerdoodle |
9 (Sep) | Jolly-Face |
10 (Oct) | Mistletoe |
11 (Nov) | Sleighbells |
12 (Dec) | Chestnuts |
For example, my name is Harvey Scott Birch and I was born in October, so my holiday name would be Jingleharv Scotmuffin Mistletoe. (Hint: use slicing for [A] and [B]. For [C], put all the possible last names in a list and have the user enter the number of their month; use that to index the list.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started