Fix the Scope Bug
This function calculates a username but never makes it available outside itself - the caller's print(result) needs a real value. Fix get_username so its local variable can actually be used by the code that calls it.
main.py
Loading editor…
Console
Run your code to see output here.