编程题:who, what, where
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
答案:若无答案欢迎评论
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
答案:若无答案欢迎评论