Hyphens should be avoided in function and variable names because they can cause syntax errors and make it harder to read your code. Python uses hyphens as subtraction operators, so if you have a variable name with a hyphen in it, Python will try to subtract the second part of the name from the first part.