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
Mandarinka [93]
3 years ago
14

Write a function called reverse Return that is almost the same job as reverse, but instead of printing the letters straight to t

he screen, it returns a String in which the letters have been reversed. The function call would look like:
Computers and Technology
1 answer:
vekshin13 years ago
8 0

Answer:

The function in Python is as follows:

def reverse(inputstr):  

   outputstr = ""

   for i in inputstr:

       outputstr = i + outputstr

   return outputstr

Explanation:

This defines the function

def reverse(inputstr):

This initializes the output string

   outputstr = ""

This iterates through the input string

   for i in inputstr:

This generates the output string by reversing the input string

       outputstr = i + outputstr

This returns the reversed string

   return outputstr

You might be interested in
Write short cut of<br> fully justified​
Slav-nsk [51]

Answer:

To make text justified, select and highlight the text first, then hold down Ctrl (the control key) on the keyboard and then press J. To make the text left aligned again, press and hold down Ctrl on the keyboard and press L

4 0
3 years ago
Decisions 1 and 3 are both ____________ decisions because ____________________.
Hoochie [10]

The Question given is incomplete so from the internet the complete question is as follows:

Health Day Regional Medical center's management team has several decisions to make. They are attempting to sort out what to do first. The decisions are as follows:

1. Determine which patients to be admitted for the next day.

2. Decide weather or not to purchase the only other medical center in their          region.

3. Decide which candidates will meet the requirements for the nursing training program.

4. Determine weather the medical center should diversify into more advanced (and substantially more costly ) technologies.

Decisions 1 and 3 are both ____________ decisions because ____________________.

A. Programmed decisions; they are novel and complex

B. Non programmed decisions; they are novel and complex  

C. Programmed decisions; they are can be solved using rules and procedures

D. Non programmed decisions; they are novel and complex

E. None of the above is correct

Answer:

Option C is the correct answer.

Decisions 1 and 3 are both Programmed decisions because they can be solved using rules and procedures .

Explanation:

Programmed Decisions can be defined as the ones that are specified and developed for routine problems that are repetitive. These decisions deal with certainty.

Now from the given list of decisions, it is obvious that the decision 1 and 3 are programmed.

  • Patients that are to be admitted must undergo through the rules and regulations so that a decision may be taken.
  • Similarly in the case of nurses, proper testing must be conducted and candidates are selected upon this criteria.

<h2>I hope it will help you!</h2>

5 0
3 years ago
What is output if the user types in 8
Lady_Fox [76]

Answer: 8

And if you hold shift while typing it, it gives *

7 0
3 years ago
When does playstation charge formy new subscription
BlackZzzverrR [31]
Right when you pay for subscription to PSPlus the timer starts and after 30 days it will end ( if you got the 1 month subscription) This is the same for 3 month and 1 year subscription
3 0
4 years ago
There are two common computer platforms for both PC and MAC users. Which term best describes this function?
andrezito [222]

Operating system (OS)

5 0
3 years ago
Other questions:
  • Which loan type requires you to make loan payments while you’re attending school?
    9·1 answer
  • Which best describes what Pavel should do differently for the kids book?
    13·2 answers
  • g 18.6 [Contest 6 - 07/10] Reverse an array Reversing an array is a common task. One approach copies to a second array in revers
    8·1 answer
  • The _______ system coordinates computer resources, provides the user interface, and runs applications.
    10·1 answer
  • Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a function named newton. This
    7·1 answer
  • DOUBLE POINTS!! PLEASE HELP QUICKLY!!!!!
    15·2 answers
  • Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digita
    13·1 answer
  • )In a graph represented by adjacency matrix u can find all the neighbours of a given vertices in ____Operations
    6·1 answer
  • 3<br> Select the correct answer.<br> What is the output of the following HTML code?<br>Please
    8·2 answers
  • Select the correct answer from each drop-down menu,
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!