Answer:
import regex as re
def in_parentheses(a_string):
regeX = re.compile(".*?\((.*?)\)")
result = re.findall(regeX, a_string)
return str(result).replace("[","").replace("]","")
print("test 1: "+in_parentheses("Open ( only"))
print("test 2: "+in_parentheses("This is a sentence (words!)."))
Answer:
Explanation:
a. In this scenario, the best solution would have an Object of Traditional Books, CD, Music, Bookstore and Customer.
b. All five objects would be able to be called by the main program loop and the Customer Object would call upon and use either the Books or CD object, While the Bookstore object would call upon all of the other objects.
c. Both the Bookstore object and Customer object will "have" other objects as the Bookstore needs to hold information on every Book or CD in the Inventory. While the Customer object would call upon the Book and CD object that they are purchasing.
d. The Music Object will extend the CD object and use information on the CD object as its parent class.
e. Since the Music Object extends the CD object it is also considered a CD since it is in CD format like the Books on CD and therefore is both objects.
<span>Encapsulation is defined as the process of adding a header in front of data supplied by a higher layer (and possibly adding a trailer as well).</span>
Answer:
the thing thats on the bottom of your page when you zoom in that makes the page go left and right.
Explanation: birb
<span>The question has a few multiple choices one can choose from;
</span><span>A. Debit cards allow you to draw funds directly from your checking account.
B. Debit cards typically offer greater fraud protection than credit cards.
C. Debit cards never require a signature to finalize a purchase like credit cards.
D. Debit cards charge higher interest rates on purchases than credit cards</span><span>
The Answer is (A) Debit cards allow you to draw funds directly from your checking account.
Checks were replaced by Debit cards as a way of paying for goods or drawing funds from your checking account. Since your debit card comes with your checking account, its simplicity will work nearly everywhere a credit card works. Adding a credit card to your checking account is just adding a layer of complications to your finances.
The fact that a debit card draws on money you already have, those who spend a lot would do well with debit cards and avoid the temptation of credit.</span>