1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liraira [26]
2 years ago
6

You are given an integer N where 0 <= N <= 100, followed by another line of input which has a word W with length L where 1

<= L <= 50. Your task is to print N lines with the word W. The lines of your output should not have any trailing or leading spaces.
Your output lines should not have any trailing or leading whitespaces

Input

3
Hello


Output

Hello
Hello
Hello
Computers and Technology
1 answer:
andreev551 [17]2 years ago
6 0

import math as m

def print_word(N, W, retries = 4):

for _ in retries:

if(N > 100 or N < 0 or len(W) > 50):

print("Number is out of range or word is too large. Try again.")

new_word = str(input("New word: "))

new_num = int(input("New number: "))

if(new_num >= 0 and new_num <= 100 and len(W) <= 50):

for row in new_num:

print(new_word)

return "Thank you for your time!"

if(N >= 0 and N <= 100 and len(W) <= 50):

for row in N:

print(W)

return "Thank you for your time!"

try:

N = m.floor(int(input("Enter a number from 0 to 100: " )))

W = str(input("Enter a word: "))

except ValueError:

print("Invalid Input!")

print(print_word(N,W))

You might be interested in
Describe two benefits of the community of replacing the printed copy with an online version.
DiKsa [7]

Answer:

less costs

Explanation:

saves more money

easy to use for everyone

6 0
3 years ago
Which of the following statement is true?
Alexxx [7]

Answer:

b. the IP address can be spoofed, so if you want to read response from the deceived party, you can use IP spoofing to hide yourself.

Explanation:

3 0
3 years ago
What type of program would you use to create a personal budget?
zepelin [54]
While Word might be the simplest application for listing your personal income and expenses, using Excel is the easiest way to create and use a budget, based on the formulas you can create to have the budget do the work for you, instead of vice versa.
7 0
3 years ago
Read 2 more answers
For her homework, Annie has added the picture of a fruit in a document. She wants to enhance it to give a cut-out look. Which fe
sattari [20]

Answer: See explanation

Explanation:

Since we are given the information that Annie added the picture of a fruit in a document and wants to enhance it to give a cut-out, she can enhance her document's look by using clip art.

Clips art are simply used for designing and can be used in the illustration of a medium. In this case, the clip art can like a bitmap graphics which typically have a limited quality.

3 0
3 years ago
Read 2 more answers
Is Rick And morty A good show i know i lot of people say it is but can you give me a summary of why i should watch it i honestly
Colt1911 [192]

Answer:

that sauce is on the show

Explanation:

people are being toxic cause the new season is all to great

3 0
3 years ago
Other questions:
  • Technology that is attached to a tag and used to identify postal packages is a(n) _____.
    12·2 answers
  • Why do most programmers indent the conditionally executed statements in a decision structure?
    7·1 answer
  • Can you answer your own question on brainly?
    12·2 answers
  • David Doe is a network administrator for the ABC Company. David is passed over for promotion three times. He is quite vocal in h
    14·1 answer
  • Www.microsoft.com is an example of this (two words) (last letter is e) and has to be (10 letters)
    10·1 answer
  • list out the application of the computer and explain it?(and as the answer for this question as image) ​
    7·1 answer
  • Charles wants to work for himself in the Transportation and Logistics career cluster. Which lists the jobs with the best
    7·2 answers
  • True/false
    8·1 answer
  • *PLEASE ANSWER QUICK*
    9·2 answers
  • i emailed someone and im sure that they emailed back however it says nothing has arrived in my inbox what do I do
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!