Your previous code snippet used doc-strings and basically conformed to PEP8. This code does not. That's totally ok! It's valid Python!

However, I would recommend, for consistency (and conformity to community norms), that you at least change camelCase to snake_case and # comments to """ docstrings.