![]() |
|
[Python] python error message - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] python error message (/showthread.php?tid=5871131) |
python error message - WifiHelpPLZ - Aug 7, 2018 Could someone please help me with what this means and how to overcome it? Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. All rights reserved. C:\Users\user>cd desktop C:\Users\user\Desktop>file.py File "C:\Users\user\Desktop\file.py", line 84 print term.BOL+term.UP+term.CLEAR_EOL+"Posting: %s" % p+term.NORMAL ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(term.BOL +term.UP+term.CLEAR_EOL+"Posting: %s" % p+term.NORMAL)? C:\Users\uuser\Desktop> RE: python error message - aggh465ddd - Aug 7, 2018 Put what you want to print out in brackets. Print (xyz) RE: python error message - WifiHelpPLZ - Aug 7, 2018 Ah thank you yes it works. Appreciate the quick response mate. ( Still very much in learning stages ) RE: python error message - aggh465ddd - Aug 7, 2018 (Aug 7, 2018 01:45 PM)WifiHelpPLZ Wrote: Ah thank you yes it works. Appreciate the quick response mate. ( Still very much in learning stages ) No worries. Just make sure to read your error messages in detail. Your one said something along the lines of 'put your print statement in apprentices' RE: python error message - WifiHelpPLZ - Aug 7, 2018 Makes sense. To be honest someone told me that it literally gives you the solution in the " errors " I think sometimes I over think still being new to any form of programming language and if I used more common sense I would go a lot further. Again hank you for your input and advice as it's golden being able to get advice and knowledge from people here. Happy to have joined. RE: python error message - HangMansheart - Aug 7, 2018 Try it with python3 and python 2.7 . Most errors I run into that don't specify a missing package are just version problems. |