This file contains a collection of prompts for generating code.
Write a Python function that takes a non-negative integer as input and returns its factorial.
Write a Python script that uses the BeautifulSoup library to scrape the headlines from the front page of the New York Times (https://www.nytimes.com/).
Write a JavaScript function that takes a string as input and returns true if the string is a palindrome, and false otherwise.