[Solved] User-Defined Functions and Learning to Think Like a Computer Scientist with Python [closed]


Add printTwice('bruce') on a new line after the function, with no indentation like so:

def printTwice(bruce):
    print('bruce')
    print('bruce')

printTwice('bruce')

This line will call your printTwice function, passing the value 'bruce' to the variable bruce, which is not used.

1

solved User-Defined Functions and Learning to Think Like a Computer Scientist with Python [closed]