![]() |
|
[Python] Syntax Error While Creating Object [Python 3.6.1] - 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] Syntax Error While Creating Object [Python 3.6.1] (/showthread.php?tid=5667292) |
Syntax Error While Creating Object [Python 3.6.1] - JuiceWater - Jul 11, 2017 Good day, everyone. Trying to get more experience with OOP in Python. It seemed very familiar to most languages, but after trying to get more practice with it now I'm not so sure anymore. Code import urllib2Code JuiceWater = Account()Code E0001:invalid syntax (<string>, line 23)I get an error at when trying to initialize JuiceWater. It says invalid syntax, but this is the way I've been creating objects for days. Does anyone know why I'm not able to create Account objects, or am I just a dumbass for not seeing the obvious?
Any explanations would be much appreciated. 🤝 * - Retribute - Jul 11, 2017 You are missing your closing brackets on line 20. PHP Code * - JuiceWater - Jul 11, 2017 (Jul 11, 2017 05:26 PM)Retribute Wrote: You are missing your closing brackets on line 20. I'm an idiot. Thanks a lot.🤝 |