Skip to content

Commit e235a31

Browse files
Merge pull request #247 from Starix36/patch-1
Update multiplication_table.py
2 parents 0c02fe6 + 95722b1 commit e235a31

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)