MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / Display

Function Display

projects/inventory management/main.py:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def Display():
27 cursor.execute("select * from inventory")
28 record = cursor.fetchall()
29 print("ID", " ", "Name", " ", "Cost", "", "Quantity")
30 for i in record:
31 print(i)
32 print("Total Number of record=", cursor.rowcount)
33
34
35# Searching product on the basis of product code

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected