EvilZone

Programming and Scripting => Beginner's Corner => Topic started by: TheCrazyPasta on November 18, 2015, 01:29:56 AM

Title: Question: Syntax Error / On Variable
Post by: TheCrazyPasta on November 18, 2015, 01:29:56 AM
Evening Everyone,

I have been stumped on this for a while now and want to reach out to you guys. This may be super easy for you but this is new to me. I have been running exercises. Language is Python.

This specific exercise is about variables. I can't for the life of me see the error and where i went wrong in this writing.

I know that ^ represents where the issue is however its written correctly in the variable.

attached is the photo of the error and my writing

Thank you In advance!
Title: Re: Question: Syntax Error / On Variable
Post by: Kurajber on November 18, 2015, 01:34:20 AM
Code: [Select]
"There are only,"Switch , and "
Code: [Select]
"There are only",How the fuck did you not see this?
Title: Re: Question: Syntax Error / On Variable
Post by: TheCrazyPasta on November 18, 2015, 01:55:36 AM

Code: [Select]
"There are only,"Switch , and "
Code: [Select]
"There are only",How the fuck did you not see this?

Just a tad embarrassed at this current moment lol. I was over thinking it way to much. Thanks for pointing it out !


Sent from my iPhone using Tapatalk
Title: Re: Question: Syntax Error / On Variable
Post by: kenjoe41 on November 18, 2015, 02:18:09 AM
Uhmm....

http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format (http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format)

https://www.python.org/dev/peps/pep-3101/ (https://www.python.org/dev/peps/pep-3101/)

https://docs.python.org/2/library/string.html (https://docs.python.org/2/library/string.html)

THAT IS ENOUGH READING FOR TODAY.