Create a function called "strip_r_o" that takes in a STRING and strips all the Rs and Os from the string. Also use a FOR loop in you program to check each letter of the STRING

Python

Answers

Answer 1

Answer:

The program is as follows (Take note of the comments and see attachment)

#Start of Program

def strip_r_o(word): #Declare Function strip_r_o

     resultt = "" #initialize resultt to empty string

     for i in range(len(word)): #Iterate from first character of input string to the last

           if (not word[i] == "R") and (not word[i] == "O"): #Check if current character is not R and O

                 resultt = resultt + word[i] #if condition is true, add character to resultt

     print(resultt) #Print string after character has been removed

#End of Function

Word = input("Enter a string: ") #Prompt user for input

strip_r_o(Word) #Call strip_r_o function

#End of Program

Explanation:

The program starts and end with a comment

Line 2 of the program declares function strip_r_o

Line 3 initializes a string variable resultt to an empty string

Line 4 iterates from first character of input string to the last  

Line 5 checks each character for O or R

If true, line 6 is executed by removing O or R from the input string and saving what's left in variable resultt

Line 7 prints the end result after O and R have been removed from the input string

Line 8 is a comment

Line 9  prompts user for an input string

Line 10 calls the strip_r_o function

Create A Function Called "strip_r_o" That Takes In A STRING And Strips All The Rs And Os From The String.

Related Questions

What is the basic unit of measurement for RAM specs

Answers

Answer: RAM, random access memory is measured in GIGABYTES. Bsbdjdjdj

Answer: The basic unit of measurement for RAM specs is byte.

¿Cuánta energía consumirá una lavadora de 1200W de potencia, si se deja conectada durante 20 horas? ¿Cuánto deberemos pagar si el coste de la energía consumida es de 0,12€/kWh?

Answers

Answer:

The amount to be paid is €2.88 for the amount of power consumed

Explanation:

The first thing to do here is to convert the power consumption to kilo-watt

1 kilowatt = 1000 watt

x kilowatt = 1200 watt

x = 1200/1000 = 1.2 KW

we now convert this to kilowatt hour by multiplying the number of hours by the number of kilowatt.

That would be 20 * 1.2 = 24 KWh

Now, the charge is 0.12€/kWh

for 24 kWh, we have 24 * 0.12 = €2.88

I NEED HELP ASAP:
A truth table has 8 inputs and 5 logic gates. How many rows will you need for your truth table? Show your working. [3 marks]

(Don't bother answering, your not getting brainliest)

Answers

Answer:

64

Explanation:

A truth table can be defined as a table that tells us more about a Boolean function.

A truth tables also gives us more information about how logic gates behave. They also show us the relationships between the inputs and outputs of a logic gates.

Logic gates are essential and fundamental components of an electrical circuit.

The rows on a truth table shows us the possible combinations of the inputs of a circuits as well as it's resulting or corresponding outputs.

In order to determine the number of rows that a truth table has, the formula below is used.

Number of rows in a truth table = (Number of Inputs)²

In the question above, we are told that

A truth table has 8 inputs and 5 logic gates. The number of rows needed for this truth table is calculated as:

Number of rows in a truth table = (Number of Inputs)²

Number of rows in a truth table = (8)²

= 64 rows.

The number of rows needed for the truth table is 64

The given parameters are:

Inputs = 8Logic gates = 5

The number of rows in the truth table is then calculated as:

[tex]Row = Inp ut^2[/tex]

Substitute value for Input

[tex]Row = 8^2[/tex]

Evaluate the exponent

[tex]Row = 64[/tex]

Hence, the number of rows needed for the truth table is 64

Read more about logic gates at:

https://brainly.com/question/20394215

What is the difference between user program and packages program?

Answers

Answer//

program is to enter a program or other instructions into (a computer or other electronic device) to instruct it to do a particular task while package is to pack or bundle something.

// have a great day //

Explanation//

A program is exactly that: a set of instructions that tells a computer how to do something.

The term package has multiple meanings, but with regard to programs, it generally means “the set of program files, data files, and other things that make up a particular application”.

// may I have Brainliest? //

a search engine is aprogram to search what?

Answers

Answer:A web search engine or Internet search engine is a software system that is designed to carry out web search (Internet search), which means to search the World Wide Web in a systematic way for particular information specified in a textual web search query.

i think it's the good answer if im right

Explanation:

Answer:

This is a software system designed to search the internet on World wide web in a systemic way for particular information specified in a textual web search query.

Explanation:

I hope it helps you thanks!!.

Explain the BASIC key statement of INPUT? ​

Answers

Answer:

This portion of program that instructs a computer how to read Un

and process information.

Explanation:

Hope it helps.

If you want to copy text formatting from one area of your document to another area, _____. a. select the formatting you would like to copy, click the Format Painter, then select the text to repeat the formatting b. select the formatting you would like to copy, copy the text, click Paste Formatting c. select the formatting you would like to copy, right-click the Format Painter, select Repeat d. double click the Format Painter

Answers

Answer:

I believe it is ‘A’

Explanation:

The Format Painter feature copies only the formatting from one selected text to another. The content and text of the selection will not be copied using Format Painter.

Answer:

It is A

Explanation:

two uses of hexadecimal

Answers

Answer:

it allows you to store more information using less space. It is fast and simple to convert between hexadecimal numbers and binary.

Explanation: Hexadecimal can be used to write large binary numbers in just a few digits. It makes life easier as it allows grouping of binary numbers which makes it easier to read, write and understand.

Which branch of study can help Jessica study the concept of light

Answers

Answer:

Physics, Quantum Mechanics

Explanation:

Light is a stream of photons with no weight. If you want to dig deeper in this mysterious phenomena, you should study physics and quantum mechanics. Physics takes up things like the theory of relativity, which can be useful in studying spacetime and how light travels through it, and quantum mechanics, being the study of matter in an atomic level, should help you get an understanding on how photons of light travel and why they behave so strangely.

Answer:

Physics

Explanation:

Five friends plan to try a startup. However, they have a limited budget and limited computer infrastructure. How can they avail the benefits of cloud services to launch their startup?

Answers

Answer:

Use the azure free $200/ google cloud $300 credit for your first year of business and as you go use the profits off of that to pay for your servers once that credit runs out....

Explanation:

Cloud servers usally run at a per house rate on $0.02 depending on what you need

What is the name of the item that supplies the exact or near exact voltage at the required wattage to all of the circuitry inside your computer?

Answers

Answer:

It's the power supply

Explanation:

The power supply is what essentially enables the computer to operate. It is able to do that by converting the incoming alternating current (AC) to direct current (DC) at the correct wattage rating that is required by the computer to function. The power supply is a metal box that is generally placed in the corner of the case.

Availability is an essential part of ________ security, and user behavior analysis and application analysis provide the data needed to ensure that systems are available.

Answers

Answer:

Network

Availability is an essential part of Network security, and user behavior analysis and application analysis provide the data needed to ensure that systems are available.

mention 5 advantages of internet​

Answers

Answer:

1) We can get various types of information, knowledge.

2) We can communicate with each other no matter where they are if they have internet connection.

3) It can be used as a source of entertainment.

4) Through internet, we can work from home especially in this quarantine time.

5) Through internet, we can show our talent and skills.

Hope it helps :)

If you liked it, please mark this answer as the brainliest one.

[ANSWER = BRAINLIEST] How to mark an answer as brainliest?

Answers

Answer:

once your question is answered you get an option available on the bottom of the answer

see attached

and you click on Mark as brainliest

Answer:

You are able mark a question Brainliest when there are 2 existing answers, or if 1 answer has existed for a while.

Hope this helps! Now get in there and mark me Brainliest! :v

LOL...s o r r y

Which memory part is connected to the processor?Which memory part is connected to the processor?

Answers

Well they are all separate pieces but you might be talking about ram ram is the random access memory which the CPU goes into sometimes

____ allow us to store a binary image in code. (1 point)
Bitmaps
Classes
Arrays
Unions

Answers

The answer is bitmaps.

Answer:

A. Bitmaps

Explanation:

What does FLUX do when soldering an electrical joint?

Answers

Answer:

Flux is an acidic blend that makes a difference evacuate oxides from the range of the joint and so makes a difference the patch stream effectively over the joint and frame a great bond. The flux can be seen as a brown fluid as a patch is warmed, and it in some cases gives off a impactful smoke that can act as a aggravation.

Explanation:

flux prevents oxidation of the base and filler materials. while soldering the metals, flux is used as threefold purpose, as it removes the oxidised metal from this surface to be soldered.

If you had an idea for a new software company, what would be the best approach to help make it a successful business? develop a business plan to describe how to maintain and grow revenues go back to school to get a degree in IT business administration hire employees who understand the software development industry seek out financial support for venture capital, angel investors and grants

Answers

Answer:

(A). Develop a business plan to describe how to maintain and grow revenues

Explanation:

I got it right on edge2020.

If you had an idea for a new software company, develop a business plan to describe would be the best approach to help make it a successful business.

What is software company ?

A business whose main offerings are different kinds of software, software technology, distribution, and software product creation is known as a software firm. They are what make up the software sector.

For corporations or customers, software development organizations create, create, and maintain apps, frameworks, or other software components.

Software may make your organization run more effectively in addition to enabling your computer hardware to execute crucial functions. Even new working methods can be developed with the correct software.

As a result, it is a vital company asset, and you should carefully select your software so that it meets your

Thus option A is correct.

To learn more about software company follow the link below;

https://brainly.com/question/10949949

#SPJ5

Suppose you want to find pages that contain the word German but not the word Shepherd. Which search would achieve? German OR Shepherd "German Shepherd" German -Shepherd "German" + "Shepherd"

Answers

Answer:

The correct answer is C) "German -Shepherd"

Explanation:

Computerized have evolved to allow for the combination or contrasting or various words.

This is made possible using Boolean Logical Operators such as AND, OR and NOT. Using any of the terms above translates to the presence of a search strategy.

In some search engines, the symbol "+" symbol is used instead of the operator "AND". In other cases, the symbol  "-" is used instead of "NOT".

The effect achieved is that "German -Shepherd" excludes the word "Shepherd" from the results.

Cheers!

Answer:

C

Explanation:

A file name extension provides what information about a file?

Answers

Answer:

A file extension or file name extension is the ending of a file that helps identify the type of file in operating systems, such as Microsoft Windows. In Microsoft Windows, the file name extension is a period that is often followed by three characters but may also be one, two, or four characters long.

Explanation:

Answer:

File format

Explanation:

what is a segment

a length of uninterrupted cable connecting two devices
the main piece of cable in the network
a piece of hardware connecting pieces of cable
a set of data or information

Answers

A length of uninterrupted cable connecting two devices

Draw a flow chart that accepts mass and volume as input from the user. The flow chart should compute and display the density of the liquid.( Note: density = mass/volume ).​

Answers

Answer:

See attachment for flowchart

Explanation:

The flowchart is represented by the following algorithm:

1. Start

2. Input Mass

3. Input Volume

4 Density = Mass/Volume

5. Print Density

6. Stop

The flowchart is explained by the algorithm above.

It starts by accepting input for Mass

Then it accepts input for Volume

Step 4 of the flowchart/algorithm calculated the Density using the following formula: Density = Mass/Volume

Step 5 prints the calculated Density

The flowchart stops execution afterwards

Note that the flowchart assumes that the user input is of number type (integer, float, double, etc.)

Please help me guys! :))))) To activate the Spelling and Grammar check features, you can either navigate to the Review tab, or use the shortcut key _____. F9 Ctrl+F F7 Ctrl+H

Answers

Answer:

F7

Explanation:

I hope this helps! :)

Answer:

F7

Explanation:

do anyone know why the technology is more Important in our live??

Answers

Answer:

In general technology makes our lives so much more simpler (full explanation below)

Explanation:

With technology, we have the tools available to us that make it easier to manage our day to day lives and exchange valuable information to our friends and family and other people. Technology is basically harnessing the tools, systems and techniques that are used to help us with problem solving or just making our lives better and easier to live in some way. In fact, technology has played a very significant role in how we live in the world and how we interact with everything around us in the environment today. Hope I helped!

Explanation:

Simply, it simplifies our life making it better than ancient ages. Before, they used to walk using their limbs long distances to reach their destinations after getting exhausted or killed if the person was ill, however today everything has changed. Technology is exactly what human needs. For instance, if someone is going to die at any moment he can reach hospital in few seconds by the favor of technology (cars...)

Plus, Technology helps our lives to remain and become easier. ... Technology is considered to be extremely important in business because it provides faster and more efficient methods of getting a job done. For example, computer programs can be used in business to provide easier manufacturing of goods.

Hope this helps...

Have a great day.

When considering who to approach as a possible mentor for you when you are

developing and marketing your game, you should consider: (1 point)
developers who succeeded in marketing a game
developers who failed to properly market a game
developers you don’t know personally
all of the above

Answers

Answer:

i would say all of the above

Explanation:

you can learn from peoples success and failures, and don't be shy to meet new people.

the command button to protect a document is part of the​.
(a) Insert tab
(b) Home tab
(c) file tab

Plz answer me

Answers

Answer:

C file tab

Explanation:

hope this helps

Tom only thinks about his own gain and does not care about the team objectives. What quality is he demonstrating? A. resourcefulness B. honesty C. dishonesty D. selfishness

Answers

Answer:

D. Selfishness

Explanation:

Selfishness is caring about yourself and not others

Answer:

selfishness

Explanation:

Question 3 of 10
2 Points
What is the term for classifying and grouping organisms?
O A. Outgrouping
B. Taxonomy
O O
O C. Linnaeus
O D. Ancestor​

Answers

Answer:

B. Taxonomy

Explanation:

Taxonomy is a term used in biological sciences. It is defined as the grouping together or classification of living organisms such as Plants, Animals and Microorganisms in specific categories or groups based on similarities in certain characteristics or morphology which they share.

Carl Linnaeus a scientist (botanist) from Sweden has been described or named as the Father of Taxonomy. This is because created what is known as the Linnaean Taxonomy system in which organisms are classified and named.

Living Organisms are classified into ranks or hierarchy listed below:

a) Domain

b) Kingdom

c) Phylum(for Animals) or Division (for Plants)

d) Class

e) Order

f) Family

g) Genus

h) Species.

Question 2: Write True or False beside each of the statements below:
a. Handheld computers are the smallest type of personal computer.
b. Mainframes are designed for interactive use.
c. A handheld can be used to keep track of appointments.
d. A server is usually found on an office employee’s desk.
e. A supercomputer is used to perform overly complex tasks.
f. A workstation usually features specific software.

Answers

Answer:

truetruetruefalsetruetrue

Which of the following data structures can erase from its beginning or its end in O(1) time?

Answers

Where all "the following" i can help you but you said which of the folllowing and ther no picture or anything?

The stack data structure can erase from its beginning or its end in O(1) time.

The O(1) complexity is an illustration of getting operations done in a constant time.

Stack data structure uses the push and pop operations for inserting and deleting items in a linear or constant time.

This implies that, inserting an item into a stack happens in O(1) time, and also; removing an item from the stack, irrespective of the item location (beginning, end, or in between) happens in O(1) time.

Read more about data structure at:

https://brainly.com/question/21287881

Other Questions
What is true of the Baroque and Rococo styles of the 17th and 18thcenturies?A. Artists primarily painted brightly colored landscapes filled withhappy subjects.B. Artists focused on abstract figures and ideas such as emotion andmusic.O C. Artists were not allowed to paint anything other than what KingLouis XIV allowed.D. Artists showed life as it was, focusing on the middle and lowerclasses. What amount would a person with actual cash value (ACV) coverage receive for two-year-old furniture destroyed by a fire? The furniture would cost $1,000 to replace today and had an estimated life of five years. Point D is an interior of ABC. what is m DBC can u help me pls Super Saver Groceries purchased store equipment for $44,500. Super Saver estimates that at the end of its 10-year service life, the equipment will be worth $4,500. During the 10-year period, the company expects to use the equipment for a total of 10,000 hours. Super Saver used the equipment for 1,400 hours the first year.Required:Calculate depreciation expense of the equipment for the first year, using each of the following methods. (Do not round your intermediate calculations.)1. Straight-line.2. Double-declining-balance.3. Activity-based. A person invests 6500 dollars in a bank. The bank pays 7% interest compoundedquarterly. To the nearest tenth of a year, how long must the person leave the moneyin the bank until it reaches 20100 dollars?A= P(1 + -]nt A 20 cmB 15 cmC 10 cmD 5 cmE 0 cmIf potential energy at point A is 12 joules, what is the potential energy at C? There is a limited amount of fossil fuels (our main source of energy for powering our appliances and cars) on Earth. Why? What is an example of a "renewable" energy source, and why is it considered "renewable"? Identify the point where the common ancestor of the fly and spider would be located. Find the perimeter of a triangle with side lengths of8020, and 45 According to paragraph 1 what was Maos impact on China? Pamela is making an online purchase. Which action will help ensure that her personal information will be secure? A. She should make sure the website's address starts with https. B. She should call the FTC and inquire about the website. C. She should check whether other websites offer the product at a similar price. Which statement about herbal health products is true? A. Herbal products do not have any chemicals in them. B. Herbal products are safe to use because they are natural. C. Herbal products might have negative side effects. Use the following information to complete parts (a) through (e) below. A researcher wanted to determine the effectiveness of a new cream in the treatment of warts. She identified 149 individuals who had two warts. She applied cream A on one wart and cream B on the second wart. Test whether the proportion of successes with cream A is different from cream B at the alpha equals 0.05 level of significance. Treatment A Treatment B Success Failure Success 63 10 Failure 25 53 What type of test should be used? A. A hypothesis test regarding the difference of two means using a matched-pairs design. B. A hypothesis test regarding two population standard deviations. C. A hypothesis test regarding the difference between two population proportions from dependent samples. D. A hypothesis test regarding the difference between two population proportions from independent samples. What is 3/4 + 1/5 equal to? why it's important to manage our natural resources Express in numbers six and three hundredths What is another name for macroevolution? A. speciation B. genetic economy C. globalized evolution D. Mendel's Law A federal government program involves re-training unemployed workers who lost their jobs in the recession in 2008. Which presidents leadership style does this program follow?A. Herbert HooverB. Franklin D RooseveltC. Barack ObamaD. John Edwards Confucius taught that people should follow two basic principles in their lives. What are the two principles? a. concern for others and acting appropriately b. never lie and always obey the elderly c. respect for nature and public service d. modesty and a desire to work Shivani runs a stable that boards 15 horses, and 5 of them are spotted. What is the experimental probability that the next horse that comes to board will be spotted?Write your answer as a fraction or whole number. Look at the flight into Egypt by Annibale Carracci. This is an example of what