15 play it sam


#1

i get an error asking if i forgot to print turn+1 each turn, what does that mean?


#2

Hi @cinpacheco22,

Here's a little trick that is much more convenient than screenshots:

Whenever you would like to paste code, since this forum supports Markdown you can use three backticks before and after your code block like so:

```
def my_func(x):
my_var = 0
if x > my_var:
sum = my_var + x
else:
print "Odelay!"
return sum
```

and it will retain proper indentation and even have nifty syntax highlighting:

def my_func(x):
    my_var = 0
    if x > my_var:
      sum = my_var + x
    else:
      print "Odelay!"
    return sum

That being said, from a quick look at your screenshot you seem to be printing turn + 1 on line 42 like you are supposed to so could you paste your entire code here so we can try to replicate and analyse a bit further? Thank you! :smile:


#3

for turn in range(4):
print "Turn", turn + 1
guess_row = int(raw_input("Guess Row:"))
guess_col = int(raw_input("Guess Col:"))
print_board(board)