It is a bad practice to use vague names such as x, y, and z in your Python code since they don’t give you any information about their roles in the code.
Write declarative variables names instead. You can also add type hints to make the types of these variables more obvious.