Reputation: 1
Hello running through a program for a Python / Jython class and running into an issue in the last portion. The code should prompt user for text 3 times and create a new hyperlink where the user can download the file with the text they entered. I get an error
There is something wrong with the text of the file you had me try to load. You may have not have as many closing parentheses as opening parentheses, left the ending quote off of a string, or tried to use a Jython keyword (if, def, etc...) as a function.
I've gone through each line and I think my issue is at the link and file name creation.
I appreciate any help. thanks.
file.write("""<a href="./reports/"""+postFile+"""">"""+postFile+"""</a>)
Upvotes: 0
Views: 183
Reputation: 1
file.write("""<a href="./reports/"""+postFile+"""">"""+postFile+"""</a>""")
You need to close the string. You ended with </a>
when it should have </a>"""
Upvotes: 0