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
vagabundo [1.1K]
4 years ago
5

#Write a function called "in_parentheses" that accepts a

Computers and Technology
1 answer:
zimovet [89]4 years ago
8 0

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!)."))

You might be interested in
Cost, time, knowledge are examples of
Katena32 [7]
They are examples of constraints.
8 0
3 years ago
In many cases, a ribbon organizes buttons and options in Select one: a. menus. b. sections. c. toolbars. d. groups.
katrin2010 [14]

Answer:

The answer is Groups

Explanation:

A ribbon organizes buttons and a program’s options into a series of groups or tabs at the top of the window. Typical ribbon tabs are composed of groups that are labeled as closely related commands. Dividing commands into groups in most Microsoft Office application helps users structure users structure the commands into related sets.

5 0
4 years ago
Read 2 more answers
Which of the following operation is not performed by a mouse​
Stolb23 [73]

Explanation:

didn't evaluation into question

4 0
4 years ago
A library function that can find one string inside another is:
Lostsunrise [7]
In c# and java it's indexOf
7 0
3 years ago
The first page of a website is what?​
EleoNora [17]

Answer:

index.html

Explanation:

The name of the html file for the homepage of a website is usually "index.html"

4 0
3 years ago
Read 2 more answers
Other questions:
  • Local television news networks cover only
    8·2 answers
  • What types of data are commonly entered into a cell ?
    7·2 answers
  • What is the process of designing green buildings called
    9·2 answers
  • is either the number of bits used to indicate the color of a single pixel, or the number of bits used for each color component o
    7·1 answer
  • The ___________ button represents the start of a hyperlink in Table of contents.
    7·1 answer
  • PLEASE HELP ME ASAP!!! THIS IS DUE SOON!!
    9·1 answer
  • The _____ feature will mark all changes made to a document for others to review at a later time.
    13·1 answer
  • This graphics program should draw a caterpillar. A caterpillar has NUM_CIRCLES circles. Use a for loop to draw the caterpillar,
    6·1 answer
  • Can anyone help with this?​
    6·1 answer
  • What are different sheet icons
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!