-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_src.py
82 lines (49 loc) · 877 Bytes
/
test_src.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
# test_src.py
# -----------
# Basically a sample script that can be run to unlock any
# Achievements specified below
import dev_achievements
# HelloWorldAchievement
print('Helo world', end='')
print('\nHello World!')
# AssignAchievement
x = 4
# MathOperatorsAchievement
x += 1
# BitwiseOperatorsAchievement
x << 2
x ^ 2
# ConditionalAchievement
if x < 4:
x = 4
else:
x = 5
# LoopsAchievement
for i in range(2):
x + i
x = 0
while x < 5:
x += 1
# ComprehensionAchievement
x = [i for i in range(10)]
# PassAchievement
for _ in range(2):
pass
# FunctionAchievement
def some_func():
pass
def some_other_func():
pass
some_func()
# LambdaAchievement
lf = lambda x: x + 1
# ListAchievement
x = [4, 5, 6]
# DictAchievement
x = {'name': 'John Doe'}
# ClassAchievement
class Test:
pass
class OtherTest:
pass
t = Test()