Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ generateTable
Function
generateTable
Chapter 9 - PS/03_problem3.py:2–8 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
1
2
def
generateTable(n):
3
table =
""
4
for
i in range(1, 11):
5
table += f
"{n} X {i} = {n*i}\n"
6
7
with
open(f
"tables/table_{n}.txt"
,
"w"
)
as
f:
8
f.write(table)
9
10
11
Callers
1
03_problem3.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected