Question: what is wrong with this code and what do I need to fix? def check_section(section_num: int, game_state: str) -> bool: return true if specified

 what is wrong with this code and what do I need

what is wrong with this code and what do I need to fix?

def check_section(section_num: int, game_state: str) -> bool: "" return true if specified section in game matches the same section in answer >>> check_section(1 , C) True >>> check_section(6 , C) False if section_num = 1 and ANSWER[O:get_section_start + SECTION_LENGTH] == \ ANSWER[O:(get_section_start + SECTION_LENGTH)]: return True else: return false def change_state(game_state: str, section_num: int, move: str) -> str: "" return a new string that reflects the move given to a specfic section Debug 1/0 Python Shell] Commands execute without debug. Use arrow keys for history. num_moves = play-game(start_state, game_mode) File "/Users/katrinabartley/Downloads/al_wordlock 3/wordlock_game.py", line 158, in state = make_move(state, section_num, move) File "/Users/katrinabartley/Downloads/al_wordlock 3/wordlock_game.py", line 86, in check_result = wf.check_section state, section_num) File "/Users/katrinabartley/Downloads/a1_wordlock 3/wordlock_functions.py", line 62, in check_section if section_num = 1 and builtins. TypeError: unsupported operand type(s) for //: 'str' and 'int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!