Robotics & Artificial Intelligence

Void functions are functions that perform actions but do not return a value. These functions often have side effects, such as printing to the console or modifying global variables.

Create a function called print_table_of_numbers(n) that prints the multiplication table of a number (n).

Python Functions

1 Like

Answer

def print_table_of_numbers(n):
    for i in range(1, 11):
        print(n, "x", i, "=", n * i)

Answered By

3 Likes


Related Questions