Untitled
Anonymous
plain_text
03/06/2024 6:52 AM
260 B
13
Indexable
numbers = [5, 3, 8, 1, 6]
item = 8
index = numbers.index(item)
print("The index of", item, "is:", index)
char_list=['h','e','l','l','o']
char_string=''.join(char_list)
print(char_string)Editor is loading...
Leave a Comment