Could you please give me the code to achieve these responses?

Hey @shinshu!

This should help you: