GitLab system status is available here and here

Commit 9c7aa664 authored by Ethan Yeung's avatar Ethan Yeung
Browse files

session 4 prompt for coding journal 1

parent 9050b205
class fav_animal:
def __init__(self, a_l, l_l, n_e, t, f):
self.arm_len = a_l
self.leg_len = l_l
self.num_eye = n_e
self.tail = t
self.fur = f
def print(self):
print("My favorite animal has arms of length " + str(self.arm_len))
print("It has legs of length " + str(self.leg_len))
print("It has " + str(self.num_eye) + " eye(s)")
print("It has a tail? ... " + str(self.tail))
print("It has fur? ... " + str(self.fur))
# a = fav_animal(3.563, 7.135, 3, True, True)
# a.print()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment