Cody Bable

Generation

generate functionTue, 25 Apr 2023

create a multiplication table grid using lines and dashes

def multiplication_table(size): for i in range(1, size+1): for j in range(1, size+1): print(f'{i*j:4}', end='') print() multiplication_table(12)

Questions about programming?Chat with your personal AI assistant