Skip to content

Commit 95722b1

Browse files
authored
Update multiplication_table.py
1 parent 3bbb74a commit 95722b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

multiplication_table.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
def table(rows, columns):
77
for i in range(1, int(rows) + 1 ): #it's safe to assume that the user would mean 12 rows when they provide 12 as an argument, b'coz 12 will produce 11 rows
8-
print "\t", i,
8+
print ("\t", i,)
99

10-
print "\n\n"
10+
print ("\n\n")
1111

1212
for i in range(1, int(columns) + 1 ):
13-
print i,
13+
print (i),
1414
for j in range(1, int(rows) + 1 ):
15-
print "\t",i*j,
16-
print "\n\n"
15+
print ("\t",i*j,)
16+
print ("\n\n")
1717

1818
table(rows, columns)

0 commit comments

Comments
 (0)