Python Forum

Full Version: Variable not defined, but it is defined... i think
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

im totally new to programming and i ran into a problem i can not solve...

i wanted to start my own program, so i would actually learn something and get familiar with functions, variables etc.

everytime i open a new project, i can not run the code in my terminal... i made an example as basic as possible (i tried to run the example)

-----------------------------------

[attachment=3575]

thx for help
A string must be enclosed in quotes (single ' or double ").
>>> person = 'Obama'
>>> person
'Obama'
>>> person = "Obama"
>>> person
'Obama'