We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
I'm tired
orI'm confused
).A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!
, because introductions follow the same format (I'm Peter
follows the same format asI'm hungry
).
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 <adjective>
orI'm a(n) <noun>
) using standard input or through a function.
Assume there is no ending punctuation.
Assume the word
I'm
is used and notI am
.
- Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
This is code-golf, so shortest byte count wins.
Follow the standard loophole rules - none of those, please.
Have fun!