Python Forum
Simple Tic Tac Toe but I'm confused
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Tic Tac Toe but I'm confused
#2
Look for statements that are in loops and shouldn't be (indentation error)
dumb but effective example:
ziggy = []
for x in range(10):
    ziggy.append(x)
    print(ziggy)
    ziggy = []
this code should be:
ziggy = []
for x in range(10):
    ziggy.append(x)
print(ziggy)
ziggy = []
and also look for the opposite (things outside of loop that should be in)
Reply


Messages In This Thread
Simple Tic Tac Toe but I'm confused - by Izith - Sep-26-2020, 07:32 AM
RE: Simple Tic Tac Toe but I'm confused - by Larz60+ - Sep-26-2020, 04:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  String int confused janeik 7 1,076 Aug-02-2023, 01:26 AM
Last Post: deanhystad
  I am confused with the key and value thing james1019 3 966 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Pandas confused DPaul 6 2,559 Sep-19-2021, 06:45 AM
Last Post: DPaul
  is and '==' i'm confused hshivaraj 6 2,708 Sep-15-2021, 09:45 AM
Last Post: snippsat
  Confused with 'flags' tester_V 10 4,913 Apr-12-2021, 03:03 AM
Last Post: tester_V
  I am really confused with this error. Runar 3 3,018 Sep-14-2020, 09:27 AM
Last Post: buran
  Confused on how to go about writing this or doing this... pythonforumuser 3 2,489 Feb-10-2020, 09:15 AM
Last Post: snippsat
  Dazed and confused... RodNintendeaux 10 7,501 May-28-2017, 01:32 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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