Week 1 Unit 3: Exercise

18. June 2024

Write a Python program that asks the user to enter:

  • A name
  • A start city
  • A destination city and
  • A means of transportation

The program should then print that the name wants to travel from start to destination by means of transportation.

Below is an example execution of the program:

Please enter a name: Christian
Please enter a start: Aachen
Please enter a destination: Berlin
Please enter a means of transportation: Train

Christian wants to travel from Aachen to Berlin by Train

< Previous unit | Next unit > | Course Overview