Question: d . Save the code file again, this time as Q 2 _ OUCU _ d . py . In part ( c ) your

d. Save the code file again, this time as Q2_OUCU_d.py. In part (c) your code always
produces 3 repetitions of the basic element. Now modify your code so that the required
number of repetitions is held in a variable number_of_elements, where
number_of_elements is initialised to 3 in this case but can be initialised to a different
value as required.
Run your program using different values of number_of_elements to test that it
produces the expected output.
Paste your Python code into your solution document as text, using an evenly spaced
font such as Courier New or Consolas, and state whether it produced the expected
output when you ran it.
Also include the code file in your TMA zip file.
 d. Save the code file again, this time as Q2_OUCU_d.py. In

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!