Question: PYTHON 4. Define a function that takes two arguments: a string called strText and a number called intNumber. This function will use a repetition structure
PYTHON
4. Define a function that takes two arguments: a string called strText and a number called intNumber. This function will use a repetition structure (a While or For loop) to print strText intNumber of times. Call this function. 5. Get an input from the user that is a file name with an extension (e.g., "myfile.ipynb" or "myfile.txt"). Print only the characters that follow the "." in the file name (e.g., "ipynb" and "txt"). 6. Ask the user for 5 numbers. Save these as items in a list. Use a repetition structure to save the highest and lowest of these numbers as two variables, and only loop through the list one time.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
