- 2
Create a ticketing system that will output the total price for 5 passengers based on their age.
3 Antworten
+ 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
+ 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!