Question: in python, Write a function that takes, as an argument, a positive integer n, and creates a file, named nLinesOfText.txt, containing n lines of text
in python, Write a function that takes, as an argument, a positive integer n, and creates a file, named nLinesOfText.txt, containing n lines of text obtained through keyboard input. In other words, the function should prompt the user to enter text n times, and it should write that information to a file. Name this function userInput(n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
