Bus Route Board
Python
25 pts
Bus Route Board
A bus goes from Asmara to Keren and then to Massawa. Using the variables a, b and c:
- Create
routeby joining the three cities with+and" - "between them. Print it. - Print the three cities with
sep=" | ". - Print
Stops:withend=" ", then print the number of stops,3, with a secondprint().
Expected output:
Asmara - Keren - Massawa Asmara | Keren | Massawa Stops: 3
Checklist
- Keep
a,bandcunchanged. - Create
routeby joining the three cities with+and" - ". - Print
route, then the cities withsep=" | ", thenStops: 3usingend=" "and twoprint()calls.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
