r/pythonhelp • u/thisnigerianmomma • Jun 15 '24
which lines have errors?
can you guys help me figure out which lines have errors?
def make_list (number) :
names = \[\]for item in number :
4 names.append (input(“Enter your name with a capital letter.”))
- print(names)
6.
7 number = int(input(“How many names need to be entered? ”))
names = make_list(number)
for name in names:
if name \[1\] ==“A”:print(“Name”, name, “starts with A”)
1
Upvotes
View all comments
Show parent comment
1
u/CStage169 Jun 22 '24
Makes sense. Means that the error in line 2 was caused by your formatting. FYI using Reddit to cheat is still cheating. Use the community as a learning resource, not as an easy way out.