Ad
Code
Diff
  • import io, sys
    
    output = io.StringIO()
    sys.stdout = output
    
    import __hello__
    
    sys.stdout = sys.__stdout__
    
    Hello_world = lambda: output.getvalue().rstrip('\n')
    
    • Hello_Python = lambda: "Hello Python!"
    • import io, sys
    • output = io.StringIO()
    • sys.stdout = output
    • import __hello__
    • sys.stdout = sys.__stdout__
    • Hello_world = lambda: output.getvalue().rstrip('\n')