bob.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# Skeleton file for the Python "Bob" exercise.
#

def hey(what):
    what = what.strip()

    if what == '':
        return 'Fine. Be that way!'

    if what.isupper():
        return 'Whoa, chill out!'

    if what.endswith('?'):
        return 'Sure.'

    return 'Whatever.'

@nirabpudasaini and @swilso793 think this looks great

Comments


You're not logged in right now. Please login via GitHub to comment