Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
i do not understand what this means Errno::ENOENT: No such file or directory @ rb_sysopen - 1
this does not make sense to me if you can help me please help. Thank you !
def get_answer() loop do puts "enter a guess to exit the loop" answer = gets.chomp if answer == "e" break end end end get_answer()
You are overcomplicating the challenge. The instructions state "Assume get_answer() is already written" and the comment above your work states "Assume get_answer() is already defined". So you don't need to define
get_answer() yourself. Just do as the challenge asks and nothing more.
In a loop:
- Assign the value of the get_answer() method to
- Break if
answeris equal to "e"
You already have the second one. Just remove any extra code and address the first one.