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
Crazy boy [7]
3 years ago
8

Write a program that print "Censored" if userInput contains the word "darn", else print userInput. End with newline.

Computers and Technology
1 answer:
Ainat [17]3 years ago
7 0

Answer:

userInput = input("Please enter a string of words ")

userInput.split ()

for item in userInput.split ():

   if item =="darn":

       print("Censored")

       break

else:

   print(userInput)

Explanation:

Using Python programming language, the input function is used to receive the users input and save in a variable userInput

Then the .split method is used to convert the words into a list of words.

Using a for loop, the code checks for the word darn and prints censored if it exists else it prints the userInput

You might be interested in
Which situation best describes the prosumer effect?
elena-s [515]

C

Explanation:

https://www.sciencedirect.com/science/article/pii/S2405844019356750

8 0
4 years ago
How many of these imformation have you shared​
Arlecino [84]

Answer:

a info none but a few

Explanation:

we are the ffe

6 0
3 years ago
Which set of cisco ios commands instructs the ips to compile a signature category named ios_ips into memory and use it to scan t
rusak2 [61]

A set of Cisco IOS commands that instructs the IPS to compile a signature category with the name IOS_IPS into memory are listed below.

<h3>What is a command?</h3>

A command can be defined as the set of instructions that is used to configure a network device such as a router, so as to make it active on a computer network and enable it perform certain tasks automatically during network communication.

In this scenario, a set of Cisco IOS commands that can be used to instruct the IPS in compiling a signature category with the name IOS_IPS into memory and use it to scan network traffic include the following:

  • R1(config)# IP IPS signature-category.
  • R1(config-ips-category)# category IOS_IPS basic.
  • R1(config-ips-category-action)# retired false.

Read more on commands here: brainly.com/question/17147683

#SPJ12

5 0
2 years ago
A jackhammer uses pressurized gas to transmit force to the hammer bit. What type of mechanical system is it?
Nadya [2.5K]
This is a pneumatic system
7 0
3 years ago
Identify the tips to create a well-designed digital portfolio.
Levart [38]

Answer:

B. She created a person website with a unique URL for her online portfolio

Explanation:

8 0
3 years ago
Other questions:
  • How did people find the first ever piece of tech?
    6·1 answer
  • Assume that the vector arr has been declared. In addition, assume that VECTOR_SIZE has been defined to be an integer that equals
    10·1 answer
  • To apply the StartSafe philosophy to preventing workplace violence, what are the three steps to follow? A. Plan for your job req
    12·2 answers
  • The address space 0x0000-0x3FF is assigned to I/O peripherals of a given HCS12 chip. How many K bytes is this? (Points : 2) 2K
    9·1 answer
  • What are the 3 symbols that can’t be used when saving a document? (From Microsoft Word 2016) (pls helped me!)
    6·1 answer
  • Explain the relevancy of computers in today's global society​
    11·1 answer
  • Enter the word that belongs in the blank:
    13·1 answer
  • Can development and conservation of environment go hand-in-hand? Explain your point of view
    8·1 answer
  • After data is collected, how is it analyzed?
    10·1 answer
  • The temperature at 8 AM was 44°F and at noon it was 64°F. what was the percent of change from 8 AM to noon?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!