|
1 |
| -def __main__global_init(): |
2 |
| - my_first_list = [1, 2, 3, 4] |
3 |
| - my_second_list = ["a", "b", "c", "d"] |
4 |
| - my_third_list = [[1, 2], [3, 4], [5, 6]] |
5 |
| - my_fourth_list = [[1.000000, 2.200000], [3.600000, 4.900000], [5.100000, 6.300000]] |
6 |
| - my_fifth_list = [{"a", "b"}, {"c", "d"}] |
7 |
| - my_sixth_list = [(1, "a"), (2, "b")] |
8 |
| - my_first_tuple = (1, "hello", 2.400000) |
9 |
| - my_second_tuple = ((1, "hello"), "world") |
10 |
| - my_third_tuple = (["hello", "world"], "world") |
11 |
| - my_fourth_tuple = ({"hello", "world"}, "world") |
12 |
| - my_first_set = {1, 2, 3, 2, 4} |
13 |
| - my_second_set = {1.100000, 2.500000, 6.800000} |
14 |
| - my_third_set = {"a", "b", "a", "c"} |
15 |
| - my_fourth_set = {(1, "a"), (2, "b"), (3, "c")} |
16 |
| - my_first_dict = {"a": 1, "b": 2, "c": 3} |
17 |
| - my_second_dict = {1: 1.330000, 2: 2.330000, 3: 3.330000} |
18 |
| - my_third_dict = {"a": "A", "b": "B", "c": "C"} |
19 |
| - my_fourth_dict = {1: (1.200000, 4.500000), 2: (3.600000, 9.200000)} |
20 |
| - my_fifth_dict = {"list1": [1, 2, 3], "list2": [4, 5, 6]} |
21 |
| - my_sixth_dict = {"set1": {1, 2, 1}, "set2": {4, 1, 2}} |
22 | 1 | def __main__global_stmts():
|
| 2 | + my_first_list = [1, 2, 3, 4] |
23 | 3 | print(my_first_list)
|
| 4 | + my_second_list = ["a", "b", "c", "d"] |
24 | 5 | print(my_second_list)
|
| 6 | + my_third_list = [[1, 2], [3, 4], [5, 6]] |
25 | 7 | print(my_third_list)
|
| 8 | + my_fourth_list = [[1.000000, 2.200000], [3.600000, 4.900000], [5.100000, 6.300000]] |
26 | 9 | print(my_fourth_list)
|
| 10 | + my_fifth_list = [{"a", "b"}, {"c", "d"}] |
27 | 11 | print(my_fifth_list)
|
| 12 | + my_sixth_list = [(1, "a"), (2, "b")] |
28 | 13 | print(my_sixth_list)
|
| 14 | + my_first_tuple = (1, "hello", 2.400000) |
29 | 15 | print(my_first_tuple)
|
| 16 | + my_second_tuple = ((1, "hello"), "world") |
30 | 17 | print(my_second_tuple)
|
| 18 | + my_third_tuple = (["hello", "world"], "world") |
31 | 19 | print(my_third_tuple)
|
| 20 | + my_fourth_tuple = ({"hello", "world"}, "world") |
32 | 21 | print(my_fourth_tuple)
|
| 22 | + my_first_set = {1, 2, 3, 2, 4} |
33 | 23 | print(my_first_set)
|
| 24 | + my_second_set = {1.100000, 2.500000, 6.800000} |
34 | 25 | print(my_second_set)
|
| 26 | + my_third_set = {"a", "b", "a", "c"} |
35 | 27 | print(my_third_set)
|
| 28 | + my_fourth_set = {(1, "a"), (2, "b"), (3, "c")} |
36 | 29 | print(my_fourth_set)
|
| 30 | + my_first_dict = {"a": 1, "b": 2, "c": 3} |
37 | 31 | print(my_first_dict)
|
| 32 | + my_second_dict = {1: 1.330000, 2: 2.330000, 3: 3.330000} |
38 | 33 | print(my_second_dict)
|
| 34 | + my_third_dict = {"a": "A", "b": "B", "c": "C"} |
39 | 35 | print(my_third_dict)
|
| 36 | + my_fourth_dict = {1: (1.200000, 4.500000), 2: (3.600000, 9.200000)} |
40 | 37 | print(my_fourth_dict)
|
| 38 | + my_fifth_dict = {"list1": [1, 2, 3], "list2": [4, 5, 6]} |
41 | 39 | print(my_fifth_dict)
|
| 40 | + my_sixth_dict = {"set1": {1, 2, 1}, "set2": {4, 1, 2}} |
42 | 41 | print(my_sixth_dict)
|
43 | 42 | fn()
|
44 | 43 | def fn():
|
|
0 commit comments