Click here to Skip to main content
15,907,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
def show(n string "Good, k=5):
 return display(string)
return n
def display(string):
return string==str(5)
print(show("Children's Day"}} print(display(string='true')) 
print(show(5, "Good"))

What I have tried:

I have tried everything but nothing is working
Updated 2-Oct-22 7:50am
Dave Kreskowiak 2-Oct-22 13:55pm    
The output of the code is a bunch of syntax errors. It won't run, so...

1 solution

What you will get from that is an error message: "invalid syntax" on the first line: What is the "n" doing there, and where is the string terminator.

Go back to your assignment and read it again: be very careful to make sure that it is exactly as your teacher set the code.

Since we have nom idea what code he did give you to work from, we can't help you any further.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900