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
alisha [4.7K]
3 years ago
8

g Write a recursive function all capital (L,start ,stop) that takes a string L and two integers. It returns a Boolean (True/Fals

e). The function will return True if there are ONLY upper case letters in the string from index start to index stop. The function will return False if there are any lower case letters in the string from index start to index stop.
Computers and Technology
1 answer:
Anton [14]3 years ago
8 0

Answer:

def recursive(L, start, stop):

         y = L[start:stop]

         print(y.isupper())

recursive("ALLow", 0, 3)

Explanation:

The code is written in python.

def recursive(L, start, stop):

The function is defined known as recursive. The function takes a string and 2 integers known as start and stop. The parameter L is a string and the other 2 parameter start and stop are integers which indicates the index range of the string L.  

y = L[start:stop]

A variable y is declared to store the string L with the index range from start to stop . Note start and stop are integers.

print(y.isupper())

The code prints True if the index range of the string L are all upper case else it print False.

recursive("ALLow", 0, 3)

This code calls the function with the required parameters L(string), Start(integer) and stop(integer)

 

You might be interested in
A device receives a Transmission Control Protocol (TCP) packet. The device understands where the actual data payload begins. Whi
asambeis [7]

Answer:

The answer is 1. Data offset

Explanation:

From the Question given, a device that receives a Transmission Control Protocol packet and also understands where the actual data payload begins is called the Data Offset

Data offset: This is the 4 bit data offset field, also referred to as the header length. It indicates the length of the TCP header so that we know where the actual data starts from or begins.

5 0
3 years ago
User Interface Design ensures that the interface has elements that are easy to ________________. (Choose all that apply)
Gnesinka [82]

Answer:

A, C, D

Explanation:

User Interface (UI) Design focuses on anticipating what users might need to do and ensuring that the interface has elements that are easy to access, understand, and use to facilitate those actions.

4 0
3 years ago
Read 2 more answers
How has technology fragmented the audience for sports and entertainment<br> commodities?
PSYCHO15rus [73]

Technology has indeed made to audience of sports and entertainment increase rapidly.

Explanation:

Years passed, one will have to go to a sports stadium or an event center before he/she can access sports or entertainment.

But in recent years the introduction of internet has made every person who wishes to, to enjoy entertainment or sports in the comfort of his/her home or wherever he/she may find him/her self.

It has even given the opportunity for those who are not able to make time as and when the event is going on to watch or listen to it later.

The internet is one of the powerful tools that help individuals enjoy entertainment and sports across the world.

The invention of television and radio has also increased the ability for a sportsman or an entertainer to get more fans in just a short period of time.

4 0
3 years ago
Which of these statements about the truck driving occupation in the U.S. are accurate?
Airida [17]

Answer:

I'm unsure 38373672823

8 0
3 years ago
Read 2 more answers
NEED HELP RIGHT NOW!!! Which of the following is the definition of a privacy policy? * 5 points - A legal document that an app o
Marina86 [1]

Answer:

A legal document that an app or a website must provide to describe the rules the company and users must obey when they use the app.

6 0
3 years ago
Other questions:
  • Which of the following situations would not require knowledge of networking?
    6·1 answer
  • In the 2007/2010 version of Paint, which of the following tools are located in the View tab? (Select all that apply.)
    5·1 answer
  • What is a common method for testing a spot weld?
    13·1 answer
  • A drop-down menu must be contained by
    5·1 answer
  • Professional photography is a competitive job field. <br> true <br> false
    12·2 answers
  • Why is charles babbage known as father of computer?​
    10·1 answer
  • Thomas drew a rectangle with an area of 6 square cm what is the greatest possible perimeter of this rectangle
    5·1 answer
  • Write a SELECT statement that uses an aggregate window function to get the total amount of each order. Return these columns: The
    13·1 answer
  • What does the CFO of a company do
    14·1 answer
  • All _______ that store more than one piece of data ​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!