0

Revenue Growth Analysis Comprehension

The question is here https://www.sololearn.com/learning/eom-project/1159/1107 My confusion from seeing other peoples code is the following: 1) The key in the dictionary is sales numbers, but nobody seems to be trying to get the key value by changing it to an integer and multipling the key by the ticket value to get total sales value? 2) if it is ticket sales, how is this number being presented? i.e. the first value in the dict "100-90": 25 This is a sale by a 25yr old, is it just one sale?. if it is really total sales then is it 10,090 ticket sales, or is it 100 minus 90 = 10 ticket sales or what is it? is it how you would write a decimal point in code for python? with a dash, i hope not. 3) This question and code that results in a correct answer seems to be calculated off counting that there is only one sale per age? and the key (ticket sales total) doesn't matter in fidning the difference in sales values? Thank you for any clarification you can give. As i am a bookkeeper learning python, the financial side just doesn;t make sense in the question and what i have read from other coders answers. Thank you Paul

24th Dec 2021, 2:46 PM
Paul Harrison
3 Answers
+ 2
Keys in the dictionary are you can say serial number of 1 ticket where as value is the age of person who bought that ticket. Originally discount is given for people under 18, meaning value of a key should be less than 18. Your goal is to tell how much money will the store make if discount is given to people under the input age. Value is not the total tickets sold. Total tickets sold is the how much key and value pairs are there.
24th Dec 2021, 3:51 PM
Sanjyot21
Sanjyot21 - avatar
+ 1
Most welcome!!
25th Dec 2021, 8:04 AM
Sanjyot21
Sanjyot21 - avatar
0
thank you very much this clarifies it all. Cheers
25th Dec 2021, 1:00 AM
Paul Harrison