Reputation: 3
I've tried running my fourth code on python and I have encountered an error that I can't seem to fix.
I tried to change around the apostrophes but it hasn't helped me.
message = 'Muhammed Ali once said, "Do not count the days, make the days count".'
print(message)
I get an error message on the terminal that says
'.' is not recognized as an internal or external command, operable program or batch file.
(program exited with code: 9009)
Upvotes: 0
Views: 543
Reputation: 3
I've found the solution, sorry for bothering everyone. I had saved the files without using the .py extension which messed up the code.
Thank you everyone for trying to help!
Upvotes: 0
Reputation: 799
This code seems completely fine. It's just the indentation at the beginning of the second line that is unnecessary - it might be what's ruining your code. Try re-writing it like so:
message = 'Muhammed Ali once said, "Do not count the days, make the days count".'
print(message)
This should work.
Upvotes: 1