Message from Python discussions

November 2018

— Read what .append does

— 

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

— 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)

Message permanent page

— 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