-->
当前位置:首页 > 题库

编程题:who, what, where

Luz3年前 (2022-12-12)题库1877
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









答案:若无答案欢迎评论