-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample2.py
107 lines (89 loc) · 1.39 KB
/
example2.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
y = 6 ** 5
y = 3 ** "3"
y = 2 + 5
y = 2 + "test"
y = 2 + 3**"test"
y = 2** 4 + "test"
y = "test" + "test"
z = 2 ** "test"
z = 2 * "test"
z = 2 * "test" ** 6
new_var = 2 - "test" ** 6
x = "test" + "test"
y = 8
o = "n"
m = o
m = None
x = 8
test = len(y)
test1 = max(8, 7, 9)
k = max(7, 6)
l = max(7, "6")
m = min(7, 6, 732, None)
n = max(None)
n = max(None, None)
o = min("1", "2")
x = len("test")
y1 = len(None)
w = y1
x = dfscfcds
new_var = "1"
power = 3 ** 4
power = 3 ** power
power = "test" ** power
power1 = new_var ** power
#Q2, Q3 We expect Errors in Line 45 and 49 and 51
ad(1)
add(1)
def add(x, y=1):
print x ** kk
ad(1, 1)
add(1, 1)
add(1, 1, 1, 1 ,1)
#Q7 We expect Errors in Line 56, 58, 62
def q7(x, y, z=0):
print 4
def q7(x,y, z=1):
print 4
def q7(x,y, z):
print 4
def q7(x,y, z, k=0):
print 4
def q7(x,y):
print 4
yywe = 2**"test"
gtuf = "32" * 10
def test(x):
y = x + 8
test(1)
# y = x
#
# y=True
# def x(w, y=None, s="athina", y=8):
# return 1
#
# def test():
# return 1
#
# def x():
# print 1
# def add(x,y):
# print 2
# def add(x,y,z=1):
# print 8
# def add(x,y,z):
# print 1
# def add(x,y,z=1):
# print 1
# add()
# def add():
# if z > 8:
# if x > 4:
# for x in test:
# return x ** 8
#
# def add():
# if z > 8:
# if x > 4:
# for x in test:
# print x ** 8