a=[4,7,3,2,5,9]
for i in a:
print(str(i)+' is in the position '+ str(a.index(i)+1))
Output:
4 is in the position 1 7 is in the position 2 3 is in the position 3 2 is in the position 4 5 is in the position 5 9 is in the position 6
A highly motivated and ambitious individual able to give timely and accurate advice, guidance, support and training to team members and individuals. Having the ability to work with the minimum of supervision whilst leading a team. Having a proven ability to lead by example, consistently hit targets, improves best practices and organizes time efficiently.
a=[4,7,3,2,5,9]
for i in a:
print(str(i)+' is in the position '+ str(a.index(i)+1))
Output:
4 is in the position 1 7 is in the position 2 3 is in the position 3 2 is in the position 4 5 is in the position 5 9 is in the position 6
my_str = "Welcome to Python"
# breakdown the string into a list of words
words = my_str.split()
# sort the list
words.sort()
# display the sorted words
print("The sorted words are:")
for word in words:
print(word)
Output:
Sorted words are: Python Welcome to
my_str = "AbcdDCBa"