We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83ccef commit 3324bb6Copy full SHA for 3324bb6
students/ChiHo/session06/weapon.py
@@ -0,0 +1,35 @@
1
+# Weapon Lab
2
+# Student: Chi Kin Ho
3
+# Date: Wednesday, February 17, 2016
4
+
5
6
+def hand_weapon(size):
7
+ if size == 'small':
8
+ return 1
9
+ elif size == 'medium':
10
+ return 2
11
+ else:
12
+ return 3
13
14
15
+def gun(size):
16
17
+ return 5
18
19
+ return 8
20
21
+ return 13
22
23
24
+def flower_power(size):
25
26
+ return 21
27
28
+ return 34
29
30
+ return 55
31
32
33
+def score(weapon_type, weapon_size):
34
+ return weapon_type(weapon_size)
35
0 commit comments