Hacker News new | ask | show | jobs
by gus_massa 1147 days ago

  choices = ['rock', 'paper', 'scissors']
  computer_choice = choices[random(-1,3)]
That -1 is very strange. Both extremes are open?
1 comments

In that example, one of the lines of codes is too long and when the program is run the editor does not open the output (black) window. (I tried all (most of) the other examples and they open the results window correctly.)