A post summary and a condition check
Write code · Challenge · §4.2, §4.5, §5.5, §5.6 Is it in there?
Print three lines from the post information. The first line shows the author, the number of reactions (likes + comments), and the ratio of reactions to views as a percentage with one decimal place, as in mina: 128 reactions / 8.0%. The second line is the list of tags with the duplicates removed, in sorted order. The third line shows whether the post has 100 or more likes and the tag "data" (True or False).
Starter code
post = {"author": "mina", "likes": 120,
"comments": 8, "views": 1600,
"tags": ["python", "data", "python"]}Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.