Skip to content

Commit

Permalink
Create Individual Files of Multiplication tables.py
Browse files Browse the repository at this point in the history
This code generates Individual Multiplication table files for numbers from 2 to 20.
File generation for Multiplication tables.
On run creates 19 different files
  • Loading branch information
Dernyt-TPE authored Oct 24, 2020
1 parent cb04292 commit 00370bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Python-programming-1/Individual Files of Multiplication tables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Makes Individual Multiplication table Files for every no. from 2 to 20
# Developer - Dernyt-TPE


for a in range(2, 21):
f = open('Multiplication table of ' + str(a), 'w')
f.write(f"\t\t\t*** Multiplication table of {a} ***\n\n\t")
for b in range(1, 11):
table = f.write(f"{a} x {b} = {a * b}\n\t")
f.close()

0 comments on commit 00370bd

Please sign in to comment.