Cody Bable

Generation

generate functionTue, 25 Apr 2023

create a multiplication table grid greater than 11

def table(num): print("x | 1 2 3 4 5 6 7 8 9 10 11 12") print("---------------------------") for x in range(1, num + 1): row = str(x) + " |" for y in range(1, 13): row += " " + str(x * y) print(row) table(12)

Questions about programming?Chat with your personal AI assistant