Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
194 B
2
Indexable
Never
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)
Leave a Comment