-
-
Save dealingwith/40c60346b0a0de4e89c9447e21153fde to your computer and use it in GitHub Desktop.
let_go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def let_go | |
| puts "Letting go..." | |
| # prompt for user input | |
| print "Are you sure? (y/n): " | |
| response = gets.chomp.downcase | |
| # check user response | |
| if response == "y" | |
| puts "Okay, goodbye!" | |
| return true | |
| else | |
| puts "Phew! That was close!" | |
| return false | |
| end | |
| end | |
| until let_go | |
| puts "You're not ready to let go yet!" | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used Copilot which wrote interesting/funny prompts, so that the program represents your ego not wanting you to let go