In python data structures can anyone explain me how to get started with the ticket office problem? Would highly appreciate it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In python data structures can anyone explain me how to get started with the ticket office problem? Would highly appreciate it

8th Jul 2022, 9:07 AM
shifa
shifa - avatar
2 Answers
+ 2
shifa , here is an explanation how it could be done: the task we have to do is: - take an integer as input (N) - calculate what the revenue is by using < 18 as the age for children (1) - calculate what the revenue is by using < N as the age for children (2) - compare the both results and calculate the revenue growth in % to get the results for (1), we have to iterare through the dictionary data and calculate the respective value as a total of all tickets that are sold in this configuration age = 18 to get the results for (2), we have to iterare through the dictionary data and calculate the respective value as a total of all tickets that are sold in this configuration age = N
8th Jul 2022, 2:36 PM
Lothar
Lothar - avatar
+ 1
read description again , understand it, follow steps : if you can't understand anything then you can ask about specific concern. hope these may helps from search bar.. Try your own solution.... https://www.sololearn.com/discuss/2648585/?ref=app https://www.sololearn.com/discuss/2615359/?ref=app https://www.sololearn.com/discuss/2780435/?ref=app https://www.sololearn.com/discuss/2740997/?ref=app https://www.sololearn.com/discuss/3050434/?ref=app
8th Jul 2022, 9:40 AM
Jayakrishna 🇮🇳