I understand that I need to use input(). But I don't understand how to prompt the user for input and how to make python write to the text file. So far I have used
f = open('document.txt', 'w')
And trying to use
f.write('text')
To write. But I can't find a way to get it to write the input instead of text provided in the code.
Is there a way to do this?
Or at least another way to do it?

New Topic/Question
Reply



MultiQuote






|