def num(Number):
if Number == 1:
print("Hi")
elif Number == 2:
print("hello")
elif Number == 1 2 3;
print("Hi hello nice" )
elif Number == 1-3:
print("Hi-nice")
d = {1: 'Hi', 2: 'hello', 3: 'nice'}
def foo(s):
for key, value in d.items():
s = s.replace(str(key), value)
print(s)
foo('1')
foo('2')
foo('1 2 3')
foo('1-3')