Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ display_menu
Function
display_menu
simple_calculator/simple_calculator.py:22–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
21
# Display the options to the user
22
def
display_menu():
23
print(
"\nSelect operation:"
)
24
print(
"1. Add"
)
25
print(
"2. Subtract"
)
26
print(
"3. Multiply"
)
27
print(
"4. Divide"
)
28
29
30
# Main program loop
Callers
1
simple_calculator.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected