← Problem book: Python
Lesson 40 of 96 · 10 XP
Rectangle of asterisks
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given a width w and a height h (positive integers). Print a rectangle of * characters: h lines of w asterisks.
Example
Input:
4 2
Output:
****
****
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.