I have a variable in my code that looks like this, only problem is it looks very ugly in my terminal. Here's a picture.
I would like it to display: {Name of the winner} has won: {prize}, instead of showing their Discord ID and making my terminal look horrible to look at.
Here is my code, which makes this monstrosity of a terminal.
winners = random.sample([user for user in users if not user.bot], k=winerscount)
winnerstosend = "
".join([winner.mention for winner in winners])
win = await msg.edit(embed = discord.Embed(title = "WINNER" , description = f"Congratulations {winnerstosend}, you have won **{msg4.content}**!" , color = discord.Color.blue()))
print(Fore.GREEN + winnerstosend , Fore.WHITE + "has won: " , Fore.GREEN + msg4.content)
print(Style.RESET_ALL)
Now I would love it if you could help me out, and convert my mistake into a beautiful confirmation message.
question from:
https://stackoverflow.com/questions/65903980/how-do-i-convert-a-mention-variable-to-a-normal-variable-and-print-it-to-my-ter 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…