I'm new to python too, but I've read that sys.stdin.readline() is
preferred. Is that right?
--
http://mail.python.org/mailman/listinfo/python-list
That's got it, thanks Steven!
--
http://mail.python.org/mailman/listinfo/python-list
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!
Hi there,
I'm totally new to Python and was wondering why I was getting an error
for this. I'm just trying to create a folder based on user input:
import os
def setupProject(project):
os.mkdir(project)
os.chdir(project)
test = input("Please enter project name: ")
setupProject(test)
If