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
Anna35 [415]
3 years 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:
Bezzdna [24]3 years ago
4 0

Answer:

def random_marks(apostrophe, quotation, apostrophe_quotation):

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

   

print(random_marks(3, 2, 3))

Explanation:

Create a function called random_marks that takes apostrophe, quotation, and apostrophe_quotation as parameters. Inside the function, return apostrophe sign times apostrophe plus quotation mark times quotation plus apostrophe sign quotation mark times apostrophe_quotation.

Note that plus sign (+) is used to concatenate strings. Also, if you multiply a string with a number, you get that number of strings ("#"*3 gives ###).

Then, call the function with given parameters and print

You might be interested in
Earth's current era is the _______ era.
natita [175]
We are in the Cenozoic Era
6 0
4 years ago
Read 2 more answers
The intended purpose of the following module is to determine whether the value parameter is within a specified range. The module
BARSIC [14]

The program does not consists of any syntax error but the module contains error in logic especially while placing the condition inside if statement.

Here we are actually planning to check whether the number passed in the “value” variable is within the given lower and upper range which is passed in second and third parameter.

Solution 1:

if value<=lower AND value>=upper Then

Display “The given number is outside the specified range.”

else

Display “The given number is within the specified range.”

End if

Alternate solution:

So for that the condition needs to be value>=lower and value <=lower. so  

if value > lower AND value <upper Then

Display “The given number is within the specified range.”

else  

Display “The given number is within the specified range.”

7 0
4 years ago
Your boss calls you from the road she's trying to connect to the local hotel guest wireless network but there's a yellow shield
tino4ka555 [31]

Hiya!

If there is a yellow shield next to the wireless icon, this indicates that the connection is functioning but is not secured. In this case because she's using the hotel guest wifi, I would tell her to switch to a more secure network or to disregard the error.

Hope this helps!

6 0
4 years ago
The study of the production and distribution of goods and services and their management is:
kramer

Answer:

the study of the production and distribution of goods and services and their management is

Explanation:

thats all you said

8 0
3 years ago
How is fraudulent email spread that makes it so difficult to track?
trapecia [35]
The owner of the email could be using a VPN.
8 0
3 years ago
Other questions:
  • Explain and Define the four types of maintenance in IT?
    11·1 answer
  • Most smartphones use operating systems developed by ________.
    10·1 answer
  • . What are the disadvantages of using small, fixed-length cells in ATM?
    13·2 answers
  • Which network protocol is used to route IP addresses?<br>A. TCP<br>B. UDP<br>C. IP<br>D. ICMP
    15·1 answer
  • PLZZZ HELP ME THIS IS THE THIRD TIME!!! BRAINLIEST AND 50 POINTS What are the advantages and disadvantages of top-down and botto
    9·1 answer
  • Which steps can you use to open the Reveal Formatting pane?
    5·2 answers
  • How does the View tab of the ribbon allow you to look at a document?
    9·1 answer
  • Compare and contrast the uses of NetWitness Investigator and Wireshark used in the lab. Why would a network administrator use Wi
    8·1 answer
  • What is the fundamental purpose of sentiment analysis on social media?​
    9·1 answer
  • The rhythmic note that three beats is called a____half note.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!