Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: string index out of range
Post: RE: string index out of range

I think I got it. Thanks this my first time using a forum. def print_board(board, count): line = "" for row in range(0, 4): for col in range(0, 4): print board[row][col] ...
cusick11 Homework 9 15,139 Mar-03-2017, 02:47 AM
    Thread: string index out of range
Post: RE: string index out of range

The code didn't post correctly here.  def print_board(board, count):     line = ""     for row in range(0, 4):         for col in range(0, 4):             print board             if(col == 0):      ...
cusick11 Homework 9 15,139 Mar-03-2017, 02:25 AM
    Thread: string index out of range
Post: RE: string index out of range

I agree that would be easier. I changed the code as seen below. Also the count is a variable I change so I can use this function to print the board for the players to see and so I can save the board i...
cusick11 Homework 9 15,139 Mar-03-2017, 01:59 AM
    Thread: string index out of range
Post: string index out of range

Okay so I'm having trouble finding my problem I know the line of code that Idle is telling me that needs corrected is not the problem, but I can't seem to find what the problem is. Please let me know ...
cusick11 Homework 9 15,139 Mar-03-2017, 12:47 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020