Why its have no output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why its have no output

queue = ['John', 'Amy', 'Bob', 'Adam'] x = queue.append(input()) print(x)

3rd Apr 2022, 10:02 AM
vikas sharma
2 Answers
+ 4
because the append method doesn't return anything so it will print None. Remove "x =" and print(queue) instead of x
3rd Apr 2022, 10:13 AM
Slick
Slick - avatar
0
Ok ty
3rd Apr 2022, 11:38 AM
vikas sharma