Skip to content
14 changes: 12 additions & 2 deletions exer_001.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@
"""

# your name and email address here
__author__ = 'xXLXx <leo@bywave.com.au>'
__author__ = 'xXLXx <kevin@bywave.com.au>'


if __name__ == '__main__':
# your code here
x = input()
if x < 60 or x > 100:
print "Invalid Value"
elif x in range(60, 75):
print "Derp!"
elif x in range(75, 85):
print "Good"
elif x in range(85, 95):
print "Very Good"
elif x in range(95, 101):
print "Level Asian!"
7 changes: 5 additions & 2 deletions exer_002.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"""

# your name and email address here
__author__ = 'xXLXx <leo@bywave.com.au>'
__author__ = 'xXLXx <kevin@bywave.com.au>'


if __name__ == '__main__':
# your code here
mods = [x for x in range(0,100) if x % 7 == 0]
print(mods)
# for x in range(0,100,7):
# print x
5 changes: 3 additions & 2 deletions exer_003.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@


# your name and email address here
__author__ = 'xXLXx <leo@bywave.com.au>'
__author__ = 'xXLXx <kevin@bywave.com.au>'


if __name__ == '__main__':
# your code here
x = raw_input().replace(' ','').split(',')
print ','.join(sorted(x))
21 changes: 21 additions & 0 deletions exer_004.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
"""
Exercise #4

Write a program that prints out the square of the first 20 integers
in a block such that the block has a dimension of 4x5.

1 4 9 16
25 36 49 64
81 100 121 144
169 196 225 256
289 324 361 400
"""


# your name and email address here
__author__ = 'xXLXx <leo@bywave.com.au>'


if __name__ == '__main__':
# your code here
24 changes: 24 additions & 0 deletions exer_005.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
"""
Exercise #5:

a program which determines whether the input string
is a palindrome or not.
(Disregard spaces)

Example:

Enter a string: This is a sample string.
>> False

Enter a string: Rats live on no evil star
>> True
"""


# your name and email address here
__author__ = 'xXLXx <leo@bywave.com.au>'


if __name__ == '__main__':
# your code here