MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / make_table_row

Function make_table_row

boolean_algebra/nor_gate.py:48–53  ·  view source on GitHub ↗

>>> make_table_row(("One", "Two", "Three")) '| One | Two | Three |'

(items: list | tuple)

Source from the content-addressed store, hash-verified

46 """
47
48 def make_table_row(items: list | tuple) -> str:
49 """
50 >>> make_table_row(("One", "Two", "Three"))
51 '| One | Two | Three |'
52 """
53 return f"| {' | '.join(f'{item:^8}' for item in items)} |"
54
55 return "\n".join(
56 (

Callers 1

truth_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected