Fetching Data from an API

Question: Write a Python function to fetch data from a REST API endpoint and return the response.
For Below URL :=>
https://jsonplaceholder.typicode.com/posts/1
Total : 0 Discussion
Login