l = [1, 2, 4, 5]
new_item = 6
l.append(6)
print(l)
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
#append items to list
list_example = ["python","ruby","java","javascript","c#","css","html"]
print(list_example)
list_example.append("assembly")
print(list_example)
#output
['python', 'ruby', 'java', 'javascript', 'c#', 'css', 'html']
['python', 'ruby', 'java', 'javascript', 'c#', 'css', 'html', 'assembly']
listA = []
for a in range(50):
if a%5==0:
listA.append(a)