Reactions and the reaction rate

Write code · Medium · §2.5, §2.6 Type conversion

The number of likes is stored in the string likes_text. Store the number of reactions, which is the number of likes plus the number of comments, in reactions. Divide the number of reactions by the number of views, multiply by 100, and store the result in rate. Print reactions and rate on two lines. Show rate to one decimal place and put % after it.

Starter code

likes_text = "120"
comments = 8
views = 3200

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.