Question: Please write in Python and note the restrictions etc thank you. Allowed Things: - The, ( + + = ) , * ,

Please write in Python and note the restrictions etc thank you.
Allowed Things:
- The,\(++=\),*, and all numeric operators
- in operator
- break and continue
- if, if-else, and elif
- Nested for loop
-\(\operatorname{str}(\)), int(), float(), range(), len(), list(), append(), and index() functions
- List comprehension [] such as new_list =[expression for loop_variable_name in iterable]
- You can use input() and print() when testing your functions, but not as part of the function. Remove all the input() and print() functions before submitting your file to Gradescope.
Disallowed Things:
- import anything.
- list slicing.
- string formatting or string indexing (string[index]).
- input() and print() functions.
- lambda expressions, dictionaries or any other Python features not covered in class
Tasks
Your non-profit organization is developing strategies to help college students effectively prioritize competing demands to increase the number of tasks to finish in a tightly binding schedule and highly dynamic learning environment. A business strategist recommended using the Tic-Tac-Toe strategy of competing to win, defending against a loss, and planning a winning move.
In recognizing these three strategies of the Tic-Tac-Toe, students can seize opportunities, protect against setbacks, and build on the success to offset the previous losses. To demonstrate how to map the Tic-Tac-Toe game strategies to student success strategies, you were tasked to develop a custom Tic-Tactoe game as a training artifact by implementing the six functions described below. All functions worth 9 points except for two functions for initializing lists are 4.5 points each.
def define_symbols(symbols_list):
```
Description: This function takes a pre-defined one-dimensional (1D) list of six different symbols, for example, ['@,'\#','X','O','1','0'] and builds a two-dimensional (2D) list consisting of three nested lists, for example, [[@,'\#'],['X','0'],['1','0']], each containing two symbols from the ID list in the order they appear in the 1D (see the below examples on the resulting 2D list).
Parameters:
symbols_list (a 1D list of strings): This parameter reflects six pre-defined symbols.
Assumptions: None
Return value: The 2D list of game symbols (Type: list)
Examples:
The row no. cannot be greater than 2 and the column no. cannot be greater than 1.
```
Symbols_list =[`@`,'#','X','0','1','0']
define_symbols(symbols_list)->[[`@','#'],[`X','0'],['1','0']]
symbols_list =['+','=','?',':','$','!']
define_symbols(symbols_list)->[['+','='],['?',':'],['$','!']]
symbols_list =[['&','^','Q','U','0','9']
define_symbols(symbols_list)->[['&','^'],['Q','U'],['0','9']]
```
Please write in Python and note the restrictions

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 Programming Questions!