I'm having a problem. I need to create the @everyone_or_person feature. A bit like discord. But I'll have to be able to read the word after the @ and stop reading when there is a ("SPACE"/"_") and check for that word in the list. I've appended a simple version as an example. I knew it would not work but I couldn't think of anything else.
input = input("input: ")
value = input.find("@")
output = input.partition("@")[0]
print(str(output))
I've tried to look up how to do it but to no avail.
This will split the string into a list with the seperator @ and you can read the string after the @ with the [1]. – Anjo Jan 12 '23 at 13:20