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
PIT_PIT [208]
3 years ago
14

Write a method that accepts a string as an argument and checks it for proper capitalization and punctuation. The method should d

etermine if the string begins with an uppercase letter and ends with a punctuation mark. The method should return true if the string meets the criteria; otherwise it should return false .
Computers and Technology
1 answer:
Contact [7]3 years ago
6 0

Answer:

The method in Python is as follows:

def checkStr(strng):

   if strng[0].isupper() and strng[-1] == "?":

       return True

   else:

       return False

Explanation:

This defines the method

def checkStr(strng):

This checks if the first character i upper and if the last is "??

   if strng[0].isupper() and strng[-1] == "?":

If the condition is true, the function returns true

       return True

Else, it returns false

<em>    else:</em>

<em>        return False</em>

You might be interested in
Computer viruses often spread by means of what?
lozanna [386]
Email attachments hope this helps
8 0
3 years ago
Read 2 more answers
What certification is provided by an APMG-International
White raven [17]

Answer:

The answer is "Agile".

Explanation:

Agile is a kind of cooperation among inter-functional, autonomous teams to recognize needs and solutions, that provides you development, economic growth, and delivery and facilitates a time-based, adaptive approach, that makes for a fast and efficient reaction to change.

  • APM Group also use for an International body specializing in human, corporate and electronic accreditation and evaluation and testing schemes.
  • It was founded in 1990 and works daily continuously through two decades, and because of some reason, this certification is also known as Agile.
6 0
4 years ago
The popularity of operating systems is determined by studying the _______ share of computer sales worldwide.
KIM [24]

I believe the blank is "information"

6 0
4 years ago
Read 2 more answers
What moment affected Brad Ferren so much that he realized art and technology coincide; and what, specifically, did he notice?
natka813 [3]

2.) Roman engineers lightened the dome as much as possible; not only its thickness progressively decreases, but the materials used in the upper part of the dome were lighter with internal spaces within the dome walls. The decrease in thickness has the effect that while the interior of the ceiling is spherical, its exterior is slightly “flattened”.

3 0
4 years ago
Define a function is_prime that receives an integer argument and returns true if the argument is a prime number and otherwise re
Mrac [35]
Study the for statement carefully!

```
#!/usr/local/bin/python3

import sys, math

def is_prime( number ):
    if( number % 2 == 0 ):
        return False
    else:
        for i in range( 3, int( math.sqrt( number ) ) + 1, 2 ):
            if( number % i == 0 ):
                return False
        return True


if( __name__ == "__main__" ):
    if( len( sys.argv ) != 2 ):
        sys.stderr.write( "\nusage: " + sys.argv[ 0 ] + " <integer>\n\n" )
        exit( 127 )

    print( is_prime( int( sys.argv[ 1 ] ) ) )
```

8 0
3 years ago
Other questions:
  • Assign a pointer to any instance of searchChar in personName to searchResult.#include #include using namespace std;int main() {c
    5·1 answer
  • Which kind of journal gives submissions to outside scientists to read and comment upon?
    9·1 answer
  • The file manager used in Microsoft Windows is
    11·1 answer
  • Which of the following, (1) money deposited in a bank account, (2) student recording her answer to a question in an online test,
    14·1 answer
  • Number of frames displayed per second
    15·1 answer
  • Identify a characteristic of electronic meeting systems.
    10·1 answer
  • Discuss the term business information SYSTEMS ​
    15·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    12·2 answers
  • True or false we can used virus not use pirated software and programs ​
    10·1 answer
  • Algorithm to calculate the sum and difference of 15 and 12​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!