answer.
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
boyakko
2 months ago
10

#Write a function called random_marks. random_marks should #take three parameters, all integers. It should return a #string. # #

The first parameter represents how many apostrophes should #be in the string. The second parameter represents how many #quotation marks should be in the string. The third #parameter represents how many apostrophe-quotation mark #pairs should be in the string. # #For example, random_marks(3, 2, 3) would return this #string: #'''""'"'"'" # #Note that there are three apostrophes, then two quotation #marks, then three '" pairs. #Add your function here!
Computers and Technology
1 answer:
Harlamova29_29 [1K]2 months ago
4 0

Response:

def random_marks(apostrophe, quotation, apostrophe_quotation):

   return "'"*apostrophe + "\""*quotation + "'\""*apostrophe_quotation

   

print(random_marks(3, 2, 3))

Justificación:

Desarrolla una función denominada random_marks que acepte apostrophe, quotation y apostrophe_quotation como parámetros. Dentro de la función, retorna el signo de apóstrofe multiplicado por apostrophe más la comilla doblada multiplicada por quotation más el par de apóstrofe-comilla multiplicado por apostrophe_quotation.

Es importante notar que el signo más (+) se utiliza para concatenar cadenas. Cuando multiplicas una cadena por un número, obtienes dicha cadena repetida la cantidad indicada ("#"*3 devuelve ###).

Finalmente, llama a la función con los parámetros dados y muestra el resultado

You might be interested in
An aviation tracking system maintains flight records for equipment and personnel. The system is a critical command and control s
Harlamova29_29 [1022]

Answer:

offline backup solution

Explanation:

In this context, the ideal choice would be an offline backup solution. Essentially, this consists of a local, non-internet connected server that retains all the flight record information that is part of the cloud system. This backup server would receive updates regularly to ensure the data is current. The aviation firm would own these servers, which would serve as a fallback option should the cloud platform experience downtime or if access to the cloud service is hindered. Being offline enables the company to retrieve the database independent of internet issues.

5 0
3 months ago
Other questions:
  • Imagine you were using some of our pixelation tools to create an image and you posted it online for your friends to see - but, a
    11·1 answer
  • A wireless network does not benefit like a wired network does, when it comes to collision reduction. Which device reduces collis
    6·1 answer
  • Dr. Collins has a personal website where he encourages his students to solve questions and discuss topics he taught in class. Wh
    14·2 answers
  • When using preventative insecticides which holiday period should trigger an application?
    15·2 answers
  • Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shift
    5·1 answer
  • Assume we have a computer where the clocks per instruction (CPI) is 1.0 when all memory accesses hit in the cache. The only data
    15·1 answer
  • Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the person's age. Complete fat_burn
    13·1 answer
  • Create a procedure named FindLargest that receives two parameters: a pointer to a signed doubleword array, and a count of the ar
    13·1 answer
  • In this assignment, you will develop a C++ program and a flowchart that calculates a cost to replace all tablets and desktop com
    14·1 answer
  • Dante wants to calculate the currently monthly subtotals for the sales of golf balls in his store. Which of the following will h
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!