Answer:
def ViewRatings(str, rating):
for book in books:
if r >= rating:
print(book)
ViewRatings("emma", 3)
Step-by-step explanation:
* The code is in Python.
Since the are missing parts in your question. I am assuming there is a books list and there is a rating, r for each book.
- Create a function called ViewRatings that takes two parameters
- Initialize a for loop that iterates through each book in the books list
- For each book, check its rating with given rating. If the rating of the book is greater than or equal to given rating, print the book
- Call the function