Question: Make a python script that takes two command line arguments, lets call them line str and n. You can assume line str is a single
Make a python script that takes two command line arguments, lets call them line str and n. You can assume line str is a single line of text given as a string and you can assume n is a positive integer. Your script should then create a new file called lines.txt with n lines, each of which are identical to line str. For instance, if line str is "hello world" and n is 4, then lines.txt should look like: hello world hello world hello world hello world
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
