I am looking for a function that would write a string onto where the user would usually input a string. I am trying to make a program that would loop through an array of strings and the user would be able to quickly fix spelling mistakes without needing to type out the word each time.
name_array = ["Sam", "Willie", "Ryan"]
for i in range(len(name_array)):
name_array[i] = input("Correct Name:")
Correct Name: Sam
^^^ I want this to automatically be written for the user.