Question: Write a python program that do the following: Q1: Display the current working directory on your system. Q2: Create a new directory called your

Write a python program that do the following: Q1: Display the current working directory on your system. Q2: Create a new directory called your first name_lab7 Q3: Inside your folder create 2 sub folders: part1 and part2 Q4: Using loop print the current working directory 5 times and no hard coding. Q5: Add a function called test that accept the name of current directory and number of time and prints the name of current directory based on the given number of times. Q6: Invoke the test function. Sample Output: C:\Users\week7 done Q1 done Q2 and Q3 C:\Users\week7 C:\Users\week7 C:\Users\week7 C:\Users\week7 C:\Users\week7 done Q4 Enter number of times: 2 C:\Users\week7 C:\Users\week7 done Q5 and Q6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
