Answer:
Mouse
Explanation:
A mouse is used by a user for navigating across a computer screen and making selections on the computer screen.
On a laptop, the user may use a trackpad for the same purpose.
Send it to the recycle bin and then empty the recycle bin.
Answer:
Following are the code to this question:
def strip_r_o(val): #Defining a method strip_r_o that takes a parameter
r = "" #defining a string variable
for x in range(len(val)): # declaring a for loop that reads input value
if (not val[x] == "R") and (not val[x] == "O"): #declaring if block to check first character is not R and O
r=r+val[x] #add character values
print(r) #Print calculated value
val= input("Enter a string: ") #input value from user end
strip_r_o(val) #Calling strip_r_o method
Output:
Enter a string: Raju
a
aj
aju
Explanation:
Following are the description of the above python code:
- In the above code, a method "strip_r_o" is declared in which "val" variable is passed as a parameter, inside the method a string variable "r" is declared, that uses the for loop to removes "R and O" from the string value and store and print its values.
- In the next step, val variable is declared, that the input value from the user and call the "strip_r_o" method value.
Answer:
The correct option is C
Explanation:
A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage with the intent of finding a global optimum.
In this, three coins {4,1,1} will be selected to make a sum of 6. But, the optimal answer is two coins {3,3}.