Ask coding questions

← Back to all posts
tictc toe
himanshuDR (0)

I need help for which operator can i use for greater or equal to for line number 45 need help there

xfinnbar (81)


if 5 >= 6:
  print("Five is greater than six, which should never happen!")
himanshuDR (0)

@xfinnbar but when i try to do that it says that it cannot be used to compare a stzring and int

himanshuDR (0)

@xfinnbar can you check if my logix is okay for creating a tictac toe game which has a board bigger than 4x4

xfinnbar (81)

@himanshuDR That's because one of the things you are trying to compare is a string. Put it inside an int() to convert it into an int.