I'm trying to make my first Python script for a Discord Webhook, to make it short a C# script passes arguments to the Python script (the length of the arguments is variable) and need to concatenate all the arguments in one variable.
import sys
from discord_webhook import DiscordWebhook, DiscordEmbed
argv_len = len(sys.argv)
for x in range(2, argv_len):
message += sys.argv[x]
The error I get is: NameError: name 'message' is not defined
I expect all arguments to be saved in one variable named "message"