Apr-15-2017, 11:51 PM
i just starter learning coding/programing,and after some joking around with bash i decided to learn python
i am making a script that should ask for your name and make a folder in the scripts directory using your name,however after imputing a name it just gives an error,
INFORMATION-i am using linux however i want my script to be cross-platform with windows aswell,python 3
here is my code
i get this error
how do i make this error go away?
i am making a script that should ask for your name and make a folder in the scripts directory using your name,however after imputing a name it just gives an error,
INFORMATION-i am using linux however i want my script to be cross-platform with windows aswell,python 3
here is my code
#!/usr/bin/env python print "hello,i will automaticaly set up you account and files" print "you will need to enter some data,be honest" myname = input("What's your name?: ") print (myname) print "your name is" + (myname) print "okay,please wait while i set up your information" import os os.mkdir((myname)) exiti enter a name,lets say the name is da
i get this error
Error:Traceback (most recent call last):
File "python.py", line 4, in <module>
myname = input("What's your name?: ")
File "<string>", line 1, in <module>
NameError: name 'da' is not defined
i have tried alot of threads but nothing has workedhow do i make this error go away?