We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!, because introductions follow the same format (
I'm Peterfollows the same format as
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
I'm amazing Hi amazing, I'm Python! I'm tired Hi tired, I'm Python! I'm hungry Hi hungry, I'm Python! I'm fat Hi fat, I'm Python!
Now assume that these test cases are being parsed by Golfscript:
I'm a programmer Hi a programmer, I'm Golfscript! I'm a question-writer Hi a question-writer, I'm Golfscript! I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
The exact challenge:
- Take in a string in the self-descriptor format (
I'm a(n) <noun>) using standard input or through a function.
Assume there is no ending punctuation.
Assume the word
I'mis used and not
- Convert it to a dad-joke format - see the above examples for exactly how that should look.