Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daviddrysdale/python-phonenumbers
/ prompt_or_default
Function
prompt_or_default
python/appspot.py:27–32 ·
view source on GitHub ↗
(msg, default)
Source
from the content-addressed store, hash-verified
25
26
27
def
prompt_or_default(msg, default):
28
result = prompt(msg)
29
if
not result:
30
return
default
31
else
:
32
return
result
33
34
35
def
blank_if_none(val):
Callers
1
interactive_query
Function · 0.85
Calls
1
prompt
Function · 0.85
Tested by
no test coverage detected