Pythen question

Joined
Aug 14, 2022
Messages
1
Reaction score
0
Complete the code to take the input as an integer and output a square of "*" characters.
An input can be taken by using the following line. You will learn more about inputs in the next session.
val = int(input())


For example, if the input is 2 and 5 respectively:



For example:

InputResult
2**
**
5*****
*****
*****
*****
*****
val = int(input())
for x in range (0, val):
print('*',end='')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top