Question: in python please Please show all steps and output too You have likely seen a multiplication-table such as the one below: I **1** | **2**


in python please
Please show all steps and output too
You have likely seen a multiplication-table such as the one below: I **1** | **2** **** ***** **** 1 ------ 1 2 | 1 I 2 | 3 16 19 1 1.6 IB 10 IB | 12 | 16 | 20 | 5 | 10 | 15 | 28 | 25 1 **** 1 5 | 15 **Figure 1**: A S-by-5 Multiplication Table.. We will be generating something similar, but instead of using products, we will be using powers**; | ***** ***** **** ***** ***** | **5** | I-------I-------I----------- ------- I **** 1 1 2 | 3 I 5 1 I **2** | 2 14 I 8 | 16 | 32 1 **3** | 3 19 | 27 | 81 | 243 | | 12 64 | 16 | 256 1 I **5** | 5 | 125 | 625 | 3125 | 25 -**Figure 2** A 5-by-5 Power Table.. We want to inicely** print a 5-by-X power table in our console. In the file [**by_five_power_table.py**] (by_five_power_table.py), write a function called 'print_by_five_power_table('** that will accept a single integer variable (named 'height) and print a "height-by-5 table onto your console: python def main(): test_height = 3 print_by_five power_table(test_height) main() I Output: text 1 1 1 1 1 2 4 8 16 32 3 927 81 243 Nicely spaced out, right? Now consider using '4' as a 'test_height'? text 1 1 1 1 1 2 4 8 16 32 3 927 81 243 4 16 64 256 1824 (**Hint**: utilize 'print''s 'sep' parameter.) If the user chooses not to enter a value for the height, **'print_by_five_power_table()'** should default to '5'. By the way, after a certain number, the spacing starts looking a bit funky. This is fine for our purposes. The important part is that you manage to make this program nodular height-wise. The keen eyes amongst you may have noticed that this problen involves a bit of hard-coding (i.e. magic numbers) in terms of the width of the table. This, too, is fine for now. We will learn how to make the width modular as well in the coming lectures
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
