You can submit this task online or view your submission status if you are a part of this course when you login to WebCMS3.
# Prompts the user for a word and outputs the list of
# all subwords of the word of height 1.
#
# Written by *** for COMP9021


def extract_subwords(word):
    pass
    # Replace pass above with your code

word = input('Enter a word: ')
print('The subwords of "{:}" of height 1 are:\n    {:}'.
                                        format(word, extract_subwords(word)))

Resource created Wednesday 19 August 2015, 11:55:16 PM.

file: quiz_3.py


Back to top

COMP9021 15s2 (Principles of Programming) is powered by WebCMS3
CRICOS Provider No. 00098G