Q:

how to set the return value of a function in pytohn

# A Python program to return multiple   
# values from a method using dictionary  
    
# This function returns a dictionary  
def fun():  
    d = dict();   
    d['str'] = "GeeksforGeeks"
    d['x']   = 20
    return d  
    
# Driver code to test above method  
d = fun()   
print(d)  
12
def showPrompt(symbol :str, container :str) -> None:
    while container.lower() != "exit":
        container = str(input(symbol))
1

New to Communities?

Join the community