@dgelessus thanks that helps a lot, and makes a lot sense. I'll make sure to not use input() on version 2. Even though I was just making files to mess around with not for any real purpose. Thanks a lot for explaining it.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by lukecov
-
RE: Making files with python script
-
RE: Making files with python script
@TutorialDoctor I tried your script, it always tells me no matter what name I put in that it "isn't defined." Also is there any need for importing arguments?
-
Making files with python script
Looking for someone to help me figure out why this doesn't work.
from sys import argv
script,filename = argvfilename = input()
target.open(filename)
target.write("hello world this is a random text file.")
target.close(filename)
I also have tried adding in 'w' so that it opens it in write mode.
-
RE: Help!
@TutorialDoctor thanks that will help a lot. I have my default interpruter set at 2.7 because that the closest to what they use on learn python the hard way. I'll have to play around with it some more.
-
RE: Help!
Thanks @TutorialDoctor I had looked on multiple websites and they hadn't offered much help.
-
Help!
I am fairly new to python and have been doing the "learnPythonTheHardWay book" on my computer. So I downloaded Pythonista so I could practice when not at home. I have run into a small problem though because very few of the things I have learned through that book work on here. Such as "raw_input()" it just says that it's not defined. Please help I don't want this to have been a waste of $10.