os.mkdir simple help

Steven D'Aprano steve at REMOVETHIScyber.com.au
Sun Feb 19 03:02:33 EST 2006


On Sat, 18 Feb 2006 23:51:42 -0800, m.wanstall wrote:

> test = input("Please enter project name: ")
> setupProject(test)
> 
> If I enter "roger" as my input I get : NameError: name 'roger' is not
> defined
> 
> I know it's incredibly simple but help would be much appreciated!
> Thanks in advance!

"input" takes the user-entered string and evaluates it as a Python
expression. You want raw_input().


-- 
Steven.




More information about the Python-list mailing list