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
Jerry is making an address book using a digital database. He has a list of his immediate family and friends but wants to add a f
Lana71 [14]

He’d use Microsoft Access to add a list of the parents of his close friends. You can use Microsoft Access and further explore the various functions that this application comes with. Assume that Jerry already has an existing table with a list of his immediate family and friends; he can create two more tables and name them “Friends’ Parents.” This way, he will have the existing fields and the new one.

8 0
3 years ago
Read 2 more answers
The blank provides access to the internet May also be internal ??
WINSTONCH [101]

The answer is : Modem .   It is a device that provides access to the Internet and it may also be internal. Modem is short for "Modulator / Demodulator." It is a hardware component that allows a computer or other device such as a router or switch, to connect to the Internet. It converts an analog signal from a cable wire to a digital signal that a computer can recognize.

5 0
3 years ago
What tool can help discover and report computer errors when you first turn on a computer and before the operating system is laun
Vlada [557]

Answer:

a post diagnostic

Explanation:

4 0
3 years ago
Read 2 more answers
graphic designers can compress files in different formats . One of the formats ensures that the quality and details of the image
musickatia [10]

Answer:

The format that is used is: PNG

Explanation:

7 0
3 years ago
What privacy risks do new technologies present,<br> and how do we decide if they're worth it?
vredina [299]

Answer:

Los riesgos de las nuevas tecnologías se multiplican a medida que nos hacemos dependientes de ellas. También lo hacen a medida que sustituyen a otras formas de contacto social más cercanas

Los riesgos de las nuevas tecnologías son grandes desconocidos. El mal uso de las redes sociales y de Internet en los ordenadores y en el teléfono móvil, entre otros factores, supone un peligro real para todos los estratos de población, pero en especial para los más jóvenes. Pensemos, ¿realmente somos conscientes de los riesgos que suponen las nuevas tecnologías? ¿Sabemos cómo utilizarlas para no ponernos en riesgo?

Cabe destacar que las denominadas nuevas tecnologías de la información y de la comunicación (TICs) son un distintivo de la época actual y se han convertido en herramientas esenciales en las diferentes áreas de la vida. Esto es, para el área académica, laboral, social, de ocio…

En la mayoría de los ámbitos están presentes las TICS, pues incluyen las diferentes herramientas con las que nos manejamos hoy en día: servicios de contacto electrónico (e-mails, servicios de mensajería instantánea, chats), los teléfonos móviles, tablets y ordenadores, las plataformas online de difusión de contenidos, las redes sociales, entre otros..

Explanation:

6 0
3 years ago
Other questions:
  • The magnavox odyssey was a commercial success
    13·1 answer
  • Software that was designed to serve the needs of a specific company or organization is called:
    5·1 answer
  • The use of electronic media, information, and communication technologies to deliver instruction where students are not required
    8·1 answer
  • State two functions of windows environment​
    9·1 answer
  • "What line of code can be used to provide a convenient way to merge the source code from one file with the source code in anothe
    8·1 answer
  • HELP PLZZZZZZZZ!!!!!!!!!!!
    14·1 answer
  • Which company was the first to develop personal computers?
    6·1 answer
  • Fill in the blanks
    7·1 answer
  • Write code which takes two inputs from the user, a number of sides followed by a side length, then creates a regular polygon wit
    10·2 answers
  • what is cicada 3301? i will give brainliest if you give me a correct answer (not copy and pasted) and somewhat well detailed, i
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!