PYTHON 7.1.6: Sandwich Sandwiches (codehs)

In this exercise, write a function called sandwich which takes a 3 letter string. Your function should return the letters that are at the beginning and end of the string.

For example,

sandwich("pbj")
# => "pj"
sandwich("blt")
# => "bt"

Answers

Answer 1

I've included my code below. Best of luck.

PYTHON 7.1.6: Sandwich Sandwiches (codehs)In This Exercise, Write A Function Called Sandwich Which Takes
Answer 2

Following are the Python program to calculate the string value:

Program Explanation:

Defining a method "sandwich" that takes string variable "x" in parameter.Inside the method, a return keyword is used that removes the middle string value.Outside the method, a print method is used that calls the "sandwich" method which accepts a string value in it and prints its return value.

Program:

def sandwich(x):#defining a method sandwich that takes string variable x in parameter

return x[0]+ x[-1]#using return keyword that remove middle string value

print(sandwich("pbj"))#calling method and print its return value

print(sandwich("blt"))#calling method and print its return value

Output:

Please find the attached file.

Learn more:

brainly.com/question/8647085

PYTHON 7.1.6: Sandwich Sandwiches (codehs)In This Exercise, Write A Function Called Sandwich Which Takes

Related Questions

Explain the four misconceptions about entrepreneurship.

Answers

Answer:

that is the answer

Explanation:

ok its about succes you business

Do you think lossy compression formats will be popular in 20 years? Why or why not?

Answers

Answer:

I think it will be not popular

Explanation:

We are living in a information era and future data will be more important than now so we will need every detail of information and we will need data. Lossy compression is faster but computers are getting powerful so lossless compression will be faster so lossless compression will be popular.

What element of a timeline helps to mark progress of the project?
A.
milestones
B.job responsibilities
C.
external deliverables
D.
internal tasks

Answers

The correct answer is A. Milestone

Explanation:

In a timeline, events are organized according to time. This tool can be used as part of projects to organize each of the events or stages that are part of a project. Moreover, in a timeline, there are milestones or important achievements.

For example, if the project is to build a house, one of the milestones or important achievements is to complete the plane of the building. This implies each of the milestones helps to check the progress of the project. After all, if all the milestones are achieved the project will be completed.

describe what is involved in the first four stages of a research project

Answers

Answer:

Step 1: Identify the Problem. ...

Step 2: Review the Literature. ...

Step 3: Clarify the Problem. ...

Step 4: Clearly Define Terms and Concepts. ...

Step 5: Define the Population. ...

Step 6: Develop the Instrumentation Plan. ...

Step 7: Collect Data. ...

Step 8: Analyze the Data.

Alpha Technologies, a newly established company, wants to share information about its work with people all over the world. Which type of server should this company use to upload their information?

Answers

This answer from the pro IdowShadow

Option A, Web Server, because it is a type of HTTP server used to direct web pages and blogs, as a method of transmitting information through a web platform for personal or business use, to publicize a business or an organization.

Which of the following is one of the tools in REPL.it that helps prevent syntax errors?
It adds closing quotes and parentheses if you type the opening ones.
It changes your binary input to the decimal system.
It allows you to see the interpreter’s algorithm.
It limits the pixel resolution.

Answers

Answer:

A. It adds closing quotes and parentheses if you type the opening ones.

Explanation:

Answer:

Yes the answer is A got a 100% hope you get a 100% too have a good day:)

Explanation:

what do you mean by computer data​

Answers

Answer:

Computer data can be defined as figures, facts or other unprocessed information (raw information) that are stored in a computer database system.

Explanation:

Computer data can be defined as figures, facts or other unprocessed information that are stored in a computer database system.

Basically, computer data are usually in various formats such as texts, images, sounds, videos and are stored only as binary digits by the computer system for processing into useful informations.

Additionally, a database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database.

Answer:

A data can be best defined as a collection of raw facts and figures.

could someone please help me with this?

Answers

Answer:

See explanation

Explanation:

Given

if(fish > 400) {

Required

What is the condition checking?

The above statement is an if conditional statement. Analysing the statement in bits:

if -> This represents the beginning of the conditional statement

fish -.> The variable that is being checked

> 400 -> The condition which the variable is being measured by.

So, the statement above is checking if the value of variable fish is greater than 400.

If the condition is true, the instructions associated to that if statement will be executed.

To play the sound repeatedly, the - - - - - - - - is used

Answers

Answer:

autoplay button may be right answer

Which of the following BEST describes a front-end developer?

Answers

Answer:

plz give me BRAINLIEST answer

Explanation:

Definition: Front end development manages everything that users visually see first in their browser or application. Front end developers are responsible for the look and feel of a site. ... As a front end developer you are responsible for the look, feel and ultimately design of the site.

A front-end developer is a type of software developer who specializes in creating the user interface (UI) and user experience (UX) of a website or application. They are responsible for translating design mock-ups and wireframes into functional code using programming languages such as HTML, CSS, and JavaScript.

Front-end developers work on the client-side of web development, focusing on the visual aspects and interactions that users see and experience directly. They ensure that the website or application is visually appealing, responsive, and user-friendly across different devices and browsers.

In addition to coding, front-end developers collaborate closely with designers and back-end developers to integrate the UI with the back-end systems and databases. They may also be involved in optimizing the performance and accessibility of the front-end code, as well as testing and debugging to ensure smooth functionality.

Learn more about databases on:

https://brainly.com/question/30163202

#SPJ6

List 4 different version of Qbasic ​

Answers

Explanation:

some version of Qbasic are

Dartmouth BASIC.

Tiny BASIC.

Applesoft BASIC.

Atari BASIC.

Sinclair BASIC.

Commodore BASIC.

BBC BASIC.

TI-BASIC.

What is the result of adding 1234.5674 and
45.67843 if you round to the nearest thousandth BEFORE the addition?

A. 1280.24543

B. 1280.246

C. 1280.245

D. 1280.24

Answers

Answer:

C. 1280.245

Explanation:

1234.567 + 45.678 = 1280.245

Ask one of your parent, grandparent or elder relatives about the popular song during their time they consider their favorite. Ask them why they like the song. Afterwhich, listen to the song yourself, which wordings or lyrics in that song you find interesting and why?​

Answers

Answer:

Babooshka by Kate bush

Explanation:

My dad likes this song because it has a very nice beat

I find this sond interesting because the vocals and pitch end up sounding different than you would expect them to be. Also the range of the singer (Kate bush) is amazing

Use the drop-down menus to identify which vocabulary terms match the definitions. involves participating in activities that enhance self-awareness, developing skills, building employability, improving quality of life, and figuring out dreams and goals. Personal and professional are desirable or useful qualities that a person already possesses. A desired end result is a(n) .

Answers

Answer:

Personal growth, assets, goal

Explanation:

By providing drop-down menus, you may save consumers from scrolling and give them quick access to the information on your website. Drop-down menus on large websites can help users save time by letting them skip one or two levels to the information they're looking for.

What main role of drop-down menus?

A drop-down menu, often known as a pull-down menu or list, is a graphic control element made to make it easier for website users to locate particular pages or features. A top-level menu header that has been clicked or hovered over causes a list of choices to appear.

When a user moves their mouse over a menu item, sub-menus and menus are displayed. Users are used to this navigational pattern from other programs, so switching is simple.

Therefore, By nesting links, the web page design is more streamlined and has fewer links on the home page.

Learn more about drop-down menus here:

https://brainly.com/question/4379717

#SPJ5

five differences between email and website addresses​

Answers

Answer:

I don't know if there are that many

An email address is an address that you can send mail to online (e-mail)

A website address is an address that you can look around at and do stuff in.

An email address always has the 'at' symbol.

Website addresses and in .com, .org, .gov etc to show that it is a 'company', organization, government website etc.

Answer:

Email:

1. For communication between individuals.

2. Can be personalized.

3. Can be made by everyone easily.

URL/Website Address:

1. For organizations or mass media communications.

2. Not everyone knows how to make a website.

Who plays Rblx?? What do yall play?

Answers

Answer:

i play rblx

Explanation:

queenloveadriana (main acc)

AdiosLoca (alt)

Azazel_Iblis (the acc I'll use for my YT channel)

I also play Fn, CofD, Destiny, 2k, Mortal Combat, but my PS4 broke and I'm waiting to get my PS5 that I ordered        

Answer:

i do

Explanation:

Computer instructions are converted to binary when executed. Binary numbers use which set of digits?

A, B, C, D, E, F

0 and 1

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Answers

Answer:

Binary numbers are expressed using only the digits 1 and 0. This is also referred to as base 2 notation.

Computer instructions are converted to binary when executed. Binary numbers use 0 and 1 set of digits. The second option is correct.

What is binary number?

In digital electronics and mathematics, a binary number is defined as a number expressed in the form of base 2 numeral system.

Binary number contains only two digits i.e. 1 and 0.

Thus, 0 and 1 set of digits are used in binary numbers.

Learn more about binary number.

https://brainly.com/question/8649831

#SPJ2

Who Likes K-pop? Which group or groups do you like

Answers

Answer:

i like k pop a little and im a blink i also like mother mother and arctic monkeys

Explanation:

Answer:

k-pop & Blackpink

Explanation:

<3

Write a java program to find the perimeter of a triangle with sides measuring 10cm, 14cm and 15 cm.

Answers

Answer:

The code is shown below.

Explanation:

Consider the provide information.

We need to find the perimeter of the triangle.

The perimeter of the triangle is the sum of all sides.

So the perimeter should be: 10 cm + 14 cm + 15 cm =  39 cm

Now we will write a Java program to find the perimeter.

public class MyClass {

   public static void main(String args[]) {

     int x=10;

     int y=14;

     int z=15;

     int A=x+y+z;

     System.out.println("The perimeter of the triangle is 10 cm + 14 cm + 15 cm = " + A+" cm");

   }

}

Execute the program and you will get a result like this:

The perimeter of the triangle is 10 cm + 14 cm + 15 cm = 39 cm

Refer to the image for better understanding.

A commonly-used estimate for the number of bytes needed to store one
page of a book is 2K (2,000). Harry Potter books have 800 pages. Each
book is 3 inches in height. How tall would the stack of Harry Potter books
be, in miles, that could be stored in a 32-bit memory space? Now, repeat
the question for a 64-bit memory space.

Answers

Answer:

0.127 miles ; 5.458 *10^8 miles

Explanation:

Number of bytes needed to store a page = 2000

Number of pages (Harry Potter's book) = 800

Total memory required to store entire book = (2000 * 800) = 1600000 = 16 * 10^5 bytes

Hence,

1 byte of memory will store : (height of each book / memory size of each book)

= 3 ÷ 16 * 10^5

= 1.875 * 10^-6

For 32 bit memory space :

(1.875 * 10^-6 * 2^32) = 8053.06368 inches

1 inch = 1.578 * 10^-5 mile

8053.06368 inches = 8053.06368 * (1.578 * 10^-5) = 0.1270773448704 miles

= 0.127 miles

For 64 bit memory size :

(1.875 * 10^-6 * (2^64)) = 3.45876 * 10^13 inches

(3.45876 * 10^13) * (1.578 * 10^-5)

= 5.458 *10^8 miles

Supplies/material used in iron​

Answers

The raw materials used to produce pig iron in a blast furnace are iron ore, coke, sinter, and limestone. Iron ores are mainly iron oxides and include magnetite, hematite, limonite, and many other rocks. The iron content of these ores ranges from 70% down to 20% or less.

Exercise 7.2.6: If You're Not First, You're Last
Write the function called end_of_word that takes a string and returns everything but the first character.

end_of_word ("boat")
="oat"
end_of_word ("mice")
="ice"​

Answers

Answer:

end_of_word ("boat")

="oat"

end_of_word ("mice")

="ice"​

Explanation:you need to call out your function in the best way possible

Answer:

def end_of_word(word):

   return word[1:]

print(end_of_word("something"))

Explanation:

Your welcome :D

Mi laptop dice the computer restarted unexpectedly or encountered an unexpected error.Windows installation cannot procced.To install Windows,

Answers

Answer:

Explanation:

There are two reasons as to what could have happened with your laptop. The first one is that your laptop was installing a critical windows update which got corrupted when the laptop's battery died causing windows itself to become corrupted. In this case, you would need to format the hard drive and reinstall windows. The second reason could be that your hard drive is failing and not allowing Windows to load or properly be installed on it. In this second scenario you would need to buy and replace the hard drive.

IM NOT GOING WITH THAT CAT

Answers

Answer:

If you say so.

Explanation:

For sure.

One way your program uses object-oriented programming is through polymorphism.

What is one way polymorphism is implemented?

repurposing an operation
created a new class using an existing class
hiding class variables from the programs using instances of the class
changing a variable from a string to a float

Answers

The way polymorphism is implemented is repurposing an operation. Option A

What is polymorphism?

Polymorphism in object-oriented programming allows objects of different classes to be used interchangeably, while performing the same action or operation.

One way polymorphism can be implemented is through the creation of a new class that inherits from an existing class and overrides one or more of its methods to provide a different implementation.

This is known as method overriding. By doing so, objects of the new class can be used in place of objects of the original class, but with the overridden behavior.

This enables more flexibility and extensibility in software design, making it easier to add new features or functionality without modifying existing code.

Read more about polymorphism at: https://brainly.com/question/14201762

#SPJ1

why is it important to consider the clients temperature before doing the foot spa services?​

Answers

Answer:

Expecially during these time checkling someone’s tempature could separate you from either getting the virus or not. But without the virus right now, it would be vital due to common things like, if the client has a little fever, you can make the water less hot so it wouldn’t be burning (unless requested). Or with a cold, you can make the water warmer to make it more enjoyable.

Which options should they choose during the evaluation
process? Check all that apply
a teacher's aide who creates world population
materials for a class
a professor who publishes world population research
in a journal
a United Nations report that analyzes trends in the
world's population
a nonprofit that tracks how the world's population
affects policy decisions
a local news program that evaluates Why some
countries are overpopulated

Answers

Answer:

B: a professor who publishes world population research

in a journal

C: United Nations report that analyzes trends in the

world's population

D: nonprofit that tracks how the world's population

affects policy decisions

Explanation:

Hope this helps :)

Out of the choices provided above, it can be concluded to state that the options to be chosen during the evaluation process of overpopulated countries, include,

a professor who publishes world population research in a journala United Nations report that analyzes trends in the world's populationa nonprofit that tracks how the world's population affects policy decisions

Therefore, the options B, C and D hold true.

What is the significance of an evaluation process?

An evaluation process can be referred to or considered as a process that relates to the detailed research or analysis related to a particular topic or subject that involves a common interest within the public.

The primary purpose of conducting an evaluation process is to ensure that the solution being taken into consideration is applicable and working effectively for the topic or subject, on which research is being conducted.

Therefore, the options B, C and D hold true and states regarding the significance of an evaluation process.

Learn more about an evaluation process here:

https://brainly.com/question/14084377

#SPJ2

The correctly formatted question has been added below for better reference.

A local news program that evaluates why some countries are overpopulated. Which options should they choose during the evaluation

process? Check all that apply

a teacher's aide who creates world population materials for a classa professor who publishes world population research in a journala United Nations report that analyzes trends in the world's populationa nonprofit that tracks how the world's population affects policy decisions

Write about the history of computer.​

Answers

Answer:

Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. Considered the "father of the computer", he conceptualized and invented the first mechanical computer in the early 19th century. ... The machine was about a century ahead of its time.

Explanation:

Hope it is helpful...

press ctrl+u please tell me if you do

Answers

Answer:

wdym?

Explanation:

please HELP!!!!
Which term refers to the individual locations within a PowerPoint table?
O units
O sections
O cells
O formulas

Answers

Answer:

cells

Explanation:

Cell is a individual location in PowerPoint table.

Answer: c

Explanation:

Other Questions
*GEOMETRY* i need assistance with this.it would be greatly appreciated if you helped me. When solving a quadratic equation using the quadratic formula, the value of the discriminant is 49. How many and what type of solutions does the quadratic equation have?Group of answer choices1 Rational Solutions2 Imaginary Solutions2 Irrational Solutions2 Rational Solutions Vocabulary matching match each term on the right to the correct definition Read the following excerpt from Narrative of the Life of Frederick Douglass, an American Slave, in which Douglass discusses how he slept as a slave on a plantation: I had no bed. I must have perished with cold, but that , the clearest night, I used steal a bag which was used for carrying corn to the mill.m I would crawl into this bag, and there sleep on the cold, damp clay floor, with my head in and my feet out. How does this passage use objectivity to increase the power of the narrative? A.it avoids bias by unemotionally telling the facts about how he slept at night. B. It relies on irony to show that felt warm when he should have felt cold. C. It avoids sentimentality by showing that the conditions did not bother him. D. It relies on understatement to share details about how he slept at night Hurry please :3 thank you Select all the correct answers. Btw Ik that 12 to the third power is correct I don't know any of the other ones The image below shows one factor that impacts climate. Identify the factor and explain how it impacts climate on Earth. 0.7c - 2.1dc= 13, d = 20.7c - 2.1d= The distance from the top of the page that the heading of a hand-printed business letter begins is _____ or _____ inches.A.1. three2.two3.oneB.1.three2.four3.two x + 3 = -x - 5 Solve Cabell Products is a division of a major corporation. Last year the division had total sales of $25,320,000, net operating income of $1,924,320, and average operating assets of $6,000,000. The company's minimum required rate of return is 10%. The division's return on investment (ROI) is closest to: What is a good question to ponder/Think about ? 3x+8-2(1-x)=1What is the value of x Describe a volcanic hazard and explain how it could become a natural disaster. The __________ rate tells you how much one unit of currency is worth when converted to another currency.A. ExchangeB. InterestC. InflationD. Compound loading1.10 J. K. Rowling's words Different types of writingcan sometimes be distinguished by the lengths of thewords used. A student interested in this fact wants tostudy the lengths of words used by J. K. Rowling in herHarry Potter books. She opens a Harry Potter book atrandom and records the lengths of the first 50 words onthe page.(a) What is the population in this study? What is thesample?(b) What variable does the student measure?vayehu Tesfaye how does shakespeare make the audience know that romeo and juliet is a tradegy What is this i need help asap plz plz really quicjkly Tell whether the equation has one, zero, or infinitely many solutions.8(x-4) + 19 = 8x - 13 A building block has a square base that has a perimeter of (12x-9) inches. Explain how to use the expression to find the length of the wall.