-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
85 lines (64 loc) · 1.25 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# x = 42 if eval(input()) else [1,2,3]
# print(x)
# x:list[int] = [0,1,2]
# print(x)
Int x = 1
print(x)
# x = [[12, 13, 14], 2, 3]
# print(x[0][1])
# a = True
# b = False
# x = not (a or b) == (not a) and (not b)
# print(x)
# x = 1
# y = True
# print(x == y)
# x = 5
# y = 10
# z = 0
# x = [1,2]
# y = x[0]
# print(y)
# x = {1:3}
# y = x[1]
# print(y)
# a = 1
# b = 2
# c = 3
# x = [a, b, c]
# print(x)
# while int(x != 0):
# x = x + -1
# y_copy = y
# inner_loop_done = 0
# while int(y_copy != 0) and int(not inner_loop_done):
# y_copy = y_copy + -1
# if int(y_copy == 4):
# z = z + 1
# if int(x == 3):
# z = z + 1
# y = y + -1
# x = x + 1
# inner_loop_done = 1
# else:
# if int(x == 2):
# z = z + 2
# else:
# z = z + 3
# y = y + -1
# x = x + 1
# inner_loop_done = 1
# if int(not inner_loop_done):
# y = y_copy
# print(z)
# x = 12
# is_positive = 1
# if int(x != 0):
# is_positive = 0
# y = 10
# print(is_positive)
# x = 1
# print(x)
# x:int = 1
# y:bool = 2
# print(x+y)