Nothing new under the sun

Report a typo

You are a programmer in a large company that has its own website. You need to write a function that will use the PUT and DELETE methods.

If the request type is DELETE, return the "Deleted" string.

If the type is PUT, return the "Updated" string.

You can use the same construction as described in the topic, just change the methods a little.

Sample Input 1:

DELETE

Sample Output 1:

Deleted
Write a program in Python 3
def database_manipulator():
return # your code here
___

Create a free account to access the full topic