Enhancing Computer Programming Education with LLMs: A Study on Effective Prompt Engineering for Python Code Generation