Python Prompts Free Prompt

Python Script to Generate a Multiplication Table

Write a Python script that prints a multiplication table for a given number
☆ Save
Prompt
You are a Python developer. Write a script that prints the multiplication table (1-10) for a given integer. The script must: 1) Accept number, 2) Print formatted table, 3) Allow range (e.g., 1-20), 4) Save to file, 5) Generate HTML version, 6) Include error handling for non-integer, 7) Add colorful output (optional). Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.