[Solved] I am trying to know the reason my code is not running [closed]


I hope I’ve fixed all the indentations:

def make_list(number) : # function to make a list of numbers
    names = [] # create an empty list
    for i in range(number): # range(number) is a list of numbers from 0 to number-1
        names.append(input("Enter your name: ")) # append() adds an element to the end of the list
    
    return names # return the list

number = int(input("How many names need to be entered?")) # ask the user for the number of names
names = make_list(number) # call the function make_list()
for name in names: # for each name in the list
    if name[1] == "A": # if the second letter of the name is "A"
        print("Vmsa", name, "Starting from the work A") # print the name and the message

0

solved I am trying to know the reason my code is not running [closed]