![ninilizovtskt](/avatars/8187.jpg)
ninilizovtskt
22.04.2021 •
Computers and Technology
PLEASE DO NOT TRUST THESE ANSWERS, THEY CAN POTENTIALLY HARM YOUR DEVICE!
Solved
Show answers
More tips
- F Food and Cooking 10 Tips for Proper Sushi Consumption...
- H Health and Medicine Want to Lose Weight? Gain Muscle without Damaging Your Health!...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
Answers on questions: Computers and Technology
- C Computers and Technology To add a picture file to a PowerPoint slide, a user should first go to the...
- H History What were Spain s goals for exploration and colonization in the New World? Check all of the boxes that apply to find an Asian trade route to discover gold to make...
- B Business A company currently pays a dividend of $3.4 per share (D0 = $3.4). It is estimated that the company s dividend will grow at a rate of 17% per year for the next...
- C Chemistry Asbestosis is a lung disease caused by inhaling asbestos fibers. The US Department of Health and Human Services considers a particular form of asbestos to be a...
- M Mathematics What should I buy? A study conducted by a research group in a recent year reported that of cell phone owners used their phones inside a store for guidance on purchasing...
- E Engineering निक क्रियाकलाप - Task गुलाब – नीचे दिए गए वाक्यों में अशुद्ध शब्दों पर गोला लगाइए – इसका उत्तर मैंने सीमा को पूछा । बाहर कुछ खड़ा है । यह भोजन दस आदमी के लिए है...
- H History 1. Which best summarizes the effectiveness of the Freedmen’s Bureau? A.It successfully redistributed land to all former slaves, but it did not teach them how to...
- B Biology II. PARTS OF THE DIGESTIVE TRACT A. ORAL CAVITY After ingestion, the physical breakdown of solid foods (mechanical digestion) begins in the oral cavity (mouth)....
- H History In this passage what does Wollstonecraft suggest must happen to change the status of women in society...
- M Mathematics I Need help please!!...
Ответ:
0
thank you for letting me know
Explanation:
ill be safe have a good day
Ответ:
Ответ:
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