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
kvv77 [185]
3 years ago
13

Given a string, return a version without the first and last char, so "Hello" yields "ell". The string length will be at least 2.

without_end('Hello') → 'ell' without_end('java') → 'av' without_end('coding') → 'odin'
Computers and Technology
1 answer:
shutvik [7]3 years ago
4 0

Answer:

<em>def without_end(strg):</em>

<em>    if len(strg)>2:</em>

<em>        return strg[1:-1]</em>

<em>    else:</em>

<em>        return strg</em>

   Explanation:

Given above is a function in Python for solving this problem, we can try different output for this program by calling this function in a print statement

print(without_end ("hello")) output ell

print(without_end ("java")) output av

print(without_end ("coding")) output odin

You might be interested in
WHAT IS ONE WAY A PIVOTTABLE COULD COMBINE THE FOLLOWING DATA
Gemiola [76]

Answer: You sort table data with commands that are displayed when you click a header arrow button. Hope it help's :D

7 0
3 years ago
Choose the parts of the browser window.
8_murik_8 [283]

Answer:

The answer is "Title bar".

Explanation:

The title bar is located on top of the screen, its color blue, which is used in browsers. It has the function, that shows the title of the web page, that you currently viewing, and other choices were wrong, which can be described as follows:

  • Enter bar is the wrong option because it is not a part of the browser.
  • The back button is also known as a backspace key which is used to delete so thing, which is written by keyboard, that's why it is wrong.
  • The forward bar is used in pipe in a module that's why it's incorrect.

4 0
3 years ago
Which presentation software element can you use to control the speed between slides in a presentation?
Ad libitum [116K]

The answer is the Transition element.

A slide transition in PowerPoint occurs when you move from one slide to another during a presentation. You can control the speed (time spend on a single slide before advancing to the next). We use set duration to set the transition speed. To set the transition speed to a shorter or a larger duration, select the slide and click on the Transitions tab in the Timing group. In the Duration box, type the number of seconds that you want.  


3 0
3 years ago
Read 2 more answers
Which expresses 6y : 9y in its simplest form?
Gwar [14]
<span>This problem is an example of ratio and proportion. You are given 6y:9y. You are required to convert this into its simplest form. The 6y:9y is also equivalent to 6y/9y. The ‘y’ variable can be eliminated since it has the same exponent and base. You are left with 6/9. The common factor for 6 and 9 is 3 so divide each number by 3. So 6/3 is 2 and 9/3 is 3. You get 2/3. This is its simplest form.</span>
6 0
3 years ago
E-banking is also called: [1]
DENIUS [597]
Answer 1 it’s online banking
3 0
3 years ago
Other questions:
  • What is an image that you can apply to another image to add detail and texture?
    6·1 answer
  • To prevent injury when pulling a nail be sure the material holding the nail is
    14·1 answer
  • How long is the latency time of a typical hard-disk drive spinning at 360 revolutions per second?
    6·1 answer
  • Will mark brainliest if correct. First come, first serve.
    10·1 answer
  • Assuming that a user enters 5 as the age, what is the output of the following code snippet? int age = 0; Scanner in = new Scanne
    10·1 answer
  • Using truth table, prove that:<br><br> (A + B). C = (A . C)+ (B .C) ?
    7·1 answer
  • In this lesson you wrote code to make the turtle draw squares. Briefly describe how the code for
    11·1 answer
  • Match the IP Protections Patent, Copyright and Trademark into the following cases:
    12·1 answer
  • What type of redundant storage configuration is most common for hosting the operating system and applications on a server
    9·1 answer
  • Dentify the benefits of workplace diversity. Select all that apply.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!