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]
3 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]3 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
Question 2: Describe and Discuss the concepts of Higher order functions and currying in a functional programming language such a
fredd [130]

Answer:

A higher-order function is a type of function in programming that can either accept a function as its parameter or return a function or both. Curring is a process used by functions to accept and access multiple arguments.  

Explanation:

Functional programming languages like Hasket, Javascript, Python, etc,  use the concept of higher-order functions and Curring to accept multiple arguments and functions as parameters and can also return a function.  

4 0
3 years ago
If a linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?
artcher [175]
The installation would have crashed or failed
6 0
4 years ago
State five fonction of THE operating system​
I am Lyosha [343]

Answer:

An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.

Memory Management.

Processor Management.

Device Management.

File Management.

Security.

Control over system performance.

Job accounting.

Error detecting aids.

7 0
3 years ago
A security administrator is analyzing a user report in which the computer exhibits odd network-related outages. The administrato
elena-s [515]

Answer: Session Hijacking

Explanation:Session hijacking is the attacking activity that threats the valid session of the computer. This attack also invokes the system with unauthorized access for hacking the information and other processes.

Other options are incorrect because crpto-malware is the ransomware that demands ransom for data encrypted by the hackers, rootkit  permits the authorized access in system without getting noticed and logic bomb is a malicious code to harm the program computing. Thus, the correct option is session hijacking.

8 0
3 years ago
Several users on the second floor of your company's building are reporting that the network is down. You go to the second floor
Juliette [100K]

The troubleshooting step that you should take next is to Question User.

<h3>What is Troubleshooting?</h3>

This refers to the diagnostics that is run on a computer program or system in order to find the problem that is causing it to malfunction or misbehave.

Hence, we can see that based on the fact that several users on the second floor of your company's building are reporting that the network is down and go to the second floor to investigate and find that you are able to access the network, the troubleshooting step that you should take next is to Question User.

Read more about troubleshooting here:

brainly.com/question/13818690

#SPJ1

3 0
2 years ago
Other questions:
  • You have just deployed SNMPv3 in your environment. Your manager asks you to make sure that your SNMP agents can only talk to the
    13·2 answers
  • What is a organisation in office technology
    7·1 answer
  • Given the following stream of accesses to a 4-block fully associative cache with LRU replacement, determine whether the access i
    8·1 answer
  • What kind of problems could you run into if you format a cell with the wrong format for the data type?
    15·2 answers
  • To quickly jump to the last cell in a worksheet press ____.
    15·1 answer
  • Why is the following statement true - ideally, your information is abbreviated
    10·2 answers
  • How can we compare a computer with human beings?
    14·1 answer
  • What are the purposes of using a text-to-speech tool? Check all that apply.
    9·2 answers
  • How does the technology work
    10·2 answers
  • Write a method, public static void selectSort(ArrayList list), which implements a selection sort on the ArrayList of Integer obj
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!