Looking up follower counts with a name stored in a variable
Write code · Medium · §4.1 By name, not by number
followers holds the number of followers for each name. Store in gap the follower count of the person in b minus the follower count of the person in a. Grading runs the code with different names in a and b and different follower counts.
Starter code
followers = {"mina": 1520, "jun": 980, "sora": 2210}
a = "jun"
b = "sora"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.