Topic: Python Challenge
Task I: Retrieving, Formatting and Displaying Data
You are required to write a program to:
1. Retrieve the names of the first five movies from https://www.myvue.com/whats-on then store them inside Python code (as a list or any other appropriate method).
2. Display the stored five movie names on the Python console in a format of choice.
Note: You need to design the format of the names of the first five moves which are going to be displayed on the Python console.
Task II: Calculating Ticket(s) Price
1. Extend your program to prompt user with proper informational message(s) to guide the user for the purpose of purchasing ticket(s) reflecting Table 1. The user is then expected to enter all the necessary values to purchase movie tickets.
Age
|
Ticket Price
|
Age
|
Ticket Price
|
off-peak
|
peak
|
Children (2-12)
|
£ 6.79
|
Children (2-12)
|
£ 10.59
|
Teen (13-18)
|
£ 7.29
|
Teen (13-18)
|
£ 10.49
|
Student
|
£ 7.79
|
Student
|
£ 10.99
|
Adult (19+)
|
£ 8.79
|
Adult (19+)
|
£ 13.19
|
Senior (60+)
|
£ 7.79
|
Senior (60+)
|
£ 10.99
|
Family (4 members)
|
£ 27.16
|
Family (4 members)
|
£ 39.96
|
Table 1: Ticket Prices
|
Note 1: If the user enters invalid value(s), the program should not terminate and a relevant error message should help the user to proceed with the process of purchasing ticket(s).
2. Once the user has entered all the necessary and valid values, you need to display a confirmation message showing the total price of purchased ticket(s) and the choices made buy user (e.g. age, peak, off-peak, etc.) during the process of purchasing ticket(s).
Note 2: You need to design the format of confirmation message on the Python console.