Professional Documents
Culture Documents
1. check duplicate letters from input. It must accept a string, i.e., a sentence. The function should return True if
the sentence has any word with duplicate letters, else return False.
2. Write an endpoint that takes a non-negative number as its only parameter. Your function should
convert the number to a string and add commas as a thousand separators. For example, calling
format_number(1000000) should return "1,000,000".
3. Make an endpoint to upload the file and read it and calculate number of words in column
Model-1 and Model-2.
Format the json output like this
“data”:[
“title”: “Jizza”,
“tone”: “Excited”,
“numModel1”: 172,
“numModel2”: 443