- 2

Create a ticketing system that will output the total price for 5 passengers based on their age.

14th Feb 2021, 12:44 PM
Chiranjeev Singh
Chiranjeev Singh - avatar
3 odpowiedzi
+ 6
Chiranjeev Singh , please do not post statements, but questions. what you mentioned is one of the python exercises. if you have a specific question please rework your post. before we can help you, you also should have done a try by yourself first. so put your code in playground and link it here. thanks
14th Feb 2021, 12:57 PM
Lothar
Lothar - avatar
+ 6
Chiranjeev Singh , thanks for your code. i assume that you did a try with it. so you are aware that there are issues with that code: ▪︎the while loop creates an infinite loop, as there is no exit condition yet ▪︎the calculation concerning on the total price does not solve the task yet please rework your code. if you get stuck somewhere, you can place a specific question - we will be happy to help you. happy coding and good success!
14th Feb 2021, 5:35 PM
Lothar
Lothar - avatar
14th Feb 2021, 1:19 PM
Chiranjeev Singh
Chiranjeev Singh - avatar