So I want to make a function like .isalpha()
or .isnumerc()
. Basically, a function where the input is before the command name.
Here’s an example:
def string.text():
print(string)
But that doesn’t work. It just says “Invalid Syntax”
I was expecting it to work like .lower()
or .isnumeric()
or .isalpha()
or all those functions that have the input behind the function name.