Both are acceptable:
- The first is more standard, more frequent and shorter.
- The second would be used to emphasize the transportation mode, typically when making a comparison. Sometimes, the article is omitted (“par train”).
According to the respective websites, you travel to Evian par train, but you travel to Paris en train. I would say that the second sounds more proper.
Leave a comment