+ 5
How to do this???
Define the function print_moves(moves) that takes in a list of moves. Print the available moves in the format "You may move __ or __ or __.". moves: a list of strings. For example, print_moves(["Left", "Right"]) should print the text You may move Left or Right..
4 ответов
+ 10
Which language are you required to do this in?
+ 4
def print_moves(lis):
return "You may move "+" or ".join(lis)
#Python solution assuming all your list elements are strings
#if they're not all string, add this line:
#lis=list(map(str,lis))
+ 2
0
I think this is what you wanted. https://code.sololearn.com/cWbQP75Yq8bq/?ref=app