Exercise 18:please help

I wrote the code the same way it was wriitten in the book
def print_two(*args):
arg1, arg2 = args
print “arg1: %r, arg2: %r” % (arg1, arg2)
but the terminal gave me an error
(indentation error : expected an indented block)
I added 4 spaces
and run (python ex18.py)
but it didn’t show anything and didn’t even gave me an error message
(I am using Python 2.7.17 beginner level)

What I can see is that you didn’t call the function.

After running in the terminal, write

Or use the other way and write the same in the python script.

1 Like

Thank you. I got the idea.It worked.

1 Like