def get_username() -> str:
    """
    Prompts the user to enter a username and then returns it
    :return: The username entered by the user
    """
    while True:
        print("Please enter your username (without spaces)")
        username = input().strip()
        if ' ' not in username:
            return username