List Methods, Factorial & Fibonocci Programs.
1. append()
Description: Adds an element to the end of the list.
Code
my_list = [1, 2, 3]
my_list.append(4)
print(my_list) # Output: [1, 2, 3, 4]
2. extend()
Description: Adds all the elements of a sequence to the end of the list.
Code
list_a =...
nikhilkandi.hashnode.dev3 min read