Python Python Collections (2016, retired 2019) Dungeon Game Movement

Help I am getting a type error!!

please help me it says:

print("You can move {}".format(", ".join(valid_moves))) TypeError: sequence item 0: expected str instance, int found

1 Answer

Ryan Cross
Ryan Cross
5,737 Points

.join is a method for strings...only strings...it seems you have fed it an int...if thats what needs to go in there you can change an int to a string with str()