---
title: "Discussion on \"List Methods, Factorial & Fibonocci Programs.\" | Hashnode"
description: "Discussion on \"List Methods, Factorial & Fibonocci Programs.\". 1. append()\n\nDescription: Adds an element to the end of the list.\n\nCode\nmy_list = [1, 2, 3]\nmy_list.append(4)\nprint(my_list)  # Output: [1, 2, 3, 4]\n\n2. extend()\n\nDescription: Adds all the elements of a sequence to the end of the list.\n\nCode\nlist_a =..."
url: "https://hashnode.com/posts/list-methods-factorial-fibonocci-programs/66b1dfe4607f271bce7b719a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [List Methods, Factorial & Fibonocci Programs.](https://nikhilkandi.hashnode.dev/list-methods-factorial-fibonocci-programs?utm_source=hashnode&utm_medium=feed)

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 =...

Aug 6, 2024 · 3 min read · nikhilkandi.hashnode.dev  
Read the article

## Written by

[Nikhil Reddy Kandi](https://hashnode.com/@nikhilkandi)

@nikhilkandi

  
[View profile](https://hashnode.com/@nikhilkandi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
