-->
当前位置:首页 > 题库 > 正文内容

编程题:who, what, where

Luz2年前 (2022-12-12)题库1738
Here are 3 lists:
Python
who=['The pony','The lamb','The kitten']
what=['having dinner','watching a movie','reading books']
where=['in the cinema','at home','on the grass']

Try programming, input three integers in the range of 0-2 (separated by commas when entering), use them as indexes to access the corresponding elements in the three lists respectively, and then make sentences. For example, if the three integers entered are 1,0,2, the output will be The lamb is having dinner on the grass.

### Sample Input:
in
1,0,2


### Sample Output:
out
The lamb is having dinner on the grass









答案:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。