Basically I'm trying to create a python printmessage function and my brain is kind of breaking up right now, I can usually solve this in 2 seconds but something just isn't working.
For the current code I have the following and am trying to fix it up:
def printmsg(type, message):
    lettercount = 0
    print(f"{colorama.Fore.RED}[DEBUG]{colorama.Fore.RESET} {len(type)}")
    varspaces = ""
    for i in range(10-len(type)):
        varspaces = varspaces + " "
    print(f"{colorama.Fore.RED}[{colorama.Fore.RESET} {type} {colorama.Fore.RED}] {varspaces} | {message}")
I just really want to know how to remove the for i in range(10-len(type)) and make it something like
varspaces = 10-len(type)  * " ".