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
20 days 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]20 days 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
Xem tập các tiến trình sau đây, với thời gian cần chạy ở cột Burst Time được cho ở đơn vị mili giây.
maria [1035]
I can't comprehend this language; otherwise, I would assist you.
3 0
1 month ago
Within a word processing program, predesigned files that have layout and some page elements already completed are called text bo
Harlamova29_29 [1022]
I believe the answer is D. You're welcome:)
7 0
21 day ago
Which of the following attributes of a website indicates a more reliable source for information?
amid [951]
A characteristic of a website that signifies a more trustworthy source of information is when it has a domain ending in ".edu". This top-level domain is associated with educational institutions, indicating that the site is connected to universities, colleges, or other educational entities, thus providing reliable and factual information.
3 0
29 days ago
To what extent are the following computer systems instances of artificial intelligence:
oksian1 [950]

Answer: Scanners used in supermarkets for barcodes and voice-activated phone menus are not examples of artificial intelligence.

Explanation:

(a) Supermarket barcode scanners can read codes, yet they lack the capability to employ machine learning techniques for learning patterns within the codes. Machine learning is a crucial aspect of artificial intelligence (AI), thus indicating they do not qualify as instances of AI. Likewise, voice-activated menus can only present options and do not carry out any complex tasks.

In contrast, web search engines and internet routing algorithms demonstrate dynamic and intelligent capabilities in processing and delivering information to users.

Hence, these are considered examples of AI.

8 0
2 months ago
A ____ partition contains the data necessary to restore a hard drive back to its state at the time the computer was purchased an
zubka84 [1067]
The answer is back up
8 0
23 days ago
Read 2 more answers
Other questions:
  • When using the Python shell and code block, what triggers the interpreter to begin evaluating a block of code
    14·1 answer
  • Which of the following is true of how computers represent numbers?
    9·2 answers
  • 3. Megan and her brother Marco have a side business where they shop at flea markets, garage sales, and estate
    9·1 answer
  • Write a program to help you feed your friends at a party by doing some math about square pizzas. Assume the grader defines a str
    12·1 answer
  • 5.15 LAB: Output values below an amount Write a program that first gets a list of integers from input. The input begins with an
    9·2 answers
  • Consider a one-way authentication technique based on asymmetric encryption: A --> B: IDA B --> A: R1 A --> B: E(PRa, R1
    13·1 answer
  • The principal that users have access to only network resources when an administrator explicitly grants them is called __________
    6·1 answer
  • Any software or program that comes in many forms and is designed to disrupt the normal operation of a computer by allowing an un
    13·1 answer
  • Define a function PrintFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand.
    9·1 answer
  • Which statement best describes the Tell Me feature in PowerPoint 2016?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!