undefined method (NoMethodError) ruby
This is because you are calling method choices, before defining it. Write the code as below: I used break, to exit from the while loop. Otherwise it will create an infinite loop.
This is because you are calling method choices, before defining it. Write the code as below: I used break, to exit from the while loop. Otherwise it will create an infinite loop.