-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex19_drill.py
More file actions
49 lines (35 loc) · 1.1 KB
/
ex19_drill.py
File metadata and controls
49 lines (35 loc) · 1.1 KB
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
#study drill - my own new function
# crossfit function
# global var for function
pullup = 5
pushup = 10
squat = 15
print """
Alright! Listen up fellows!
You can do this WOD in this way.
Here's the drill:
"""
def workout_of_the_day(pullup, pushup, squat):
print "The first exercise is to make %r pullups." % pullup
print "If you finish the %d pullups then you get to do is %d of pushups." % (pullup, pushup)
print "Next to do after %d pullups and %d pushups is to do %d of squat with the great technique.\n" % (pullup, pushup, squat)
workout_of_the_day(pullup, pushup, squat)
# another way to do it with other arguments:
print "Another way to do it:"
workout_of_the_day(100,100,100)
# the other way
print "Maybe this fuckers!"
numer_of_pullup = 5
numer_of_pushup = 10
numer_of_squat = 15
workout_of_the_day(numer_of_pullup, numer_of_pushup, numer_of_squat)
# one more def of WOD
print"Do this my spartans!"
workout_of_the_day(numer_of_pullup + 5, numer_of_pushup + 5 , numer_of_squat + 5)
print """
Let's go!
Start in two minutes!
Get this shit done!
Give all you can!
Remeber! This is fucking EMOM!
"""