Message from Python discussions

November 2018

— Telugu_ra guys this is code

— 

my_list = []
for i in range(0,3):
number = int(input("Enter a number: "))
my_list.append(number)

print(my_list)

— Thanks to you all

— Can somene explain the mistake i committed to me

— Append means it adds the integer to the empty list you created in the first line

— Append modifies the list in place and returns None

— Because you cant understand python language

— Exactly!

— It doesnt return the list

— You can use pycharm for debug

— I wan to know why this is wrong

print(mylist.append(number)

— I am using vs code