Written in Python multiplication table

x = 1

while x < 10:
	y = 1
	while y <= x:
		print(' {} * {} = {}'.format(y,x,y*x),end='')
		y += 1
	print()
	x += 1

 There are simpler wording it?

Guess you like

Origin www.cnblogs.com/sdzycw/p/11670959.html