I need help to write this python program
body calls main function
main function prompts user to continue or exit, value
into sentinel flag
# enter at least three names
while loop when flag is true
prompt and append value into list # type in names
prompts user to continue or exit, value into sentinel
flag
change list[0] to = 0 and the last list value to = 1
Read the list in reverse order and print names
#hint use length of list and decrement index pointer
return value 1