multiplication table with python

Solutions on MaxInterview for multiplication table with python by the best coders in the world

showing results for - "multiplication table with python"
Matthew
09 May 2017
1first_doc = '''it created by iliya zahedi abghari
2
3i am the student in iran , alameh tabatabayi school
4'''
5
6print(first_doc)
7def jadval_zarb(rows, columns):
8	for i in range(1,rows+1):
9		for j in range(1,columns+1):
10			#print(i*j, end=' ')
11			print('{:>4}'.format(i* j), end=' ')
12		print()
13jadval_zarb(10,10)
14def do_continue():
15	choice = str(input('continue(yes/no)?')).lower()
16	if(choice !='yes'):
17		return False
18	return True
19while True:
20	rows = int(input("Enter rows:"))
21	columns = int(input("Enter columns:"))
22	jadval_zarb(rows, columns)
23	if(not do_continue()):
24		break
25