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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!