How do you say

A train departs from Beijing for Shanghai.

..in Chinese?

一班火车从北京开往上海。

yī bān huǒ chē cóng běi jīng kāi wǎng shàng hǎi 。

How do you say "He learned to swim in two weeks." in Chinese?