---
title: "Discussion on \"8 ways to add an element to the beginning of a list and string in Python\" | Hashnode"
description: "Discussion on \"8 ways to add an element to the beginning of a list and string in Python\". Let's look at different methods for adding elements to the beginning of a list and string: concatenation, insert, append, extend, rjust, and f-strings"
url: "https://hashnode.com/posts/8-ways-to-add-an-element-to-the-beginning-of-a-list-and-string-in-python/629a93fef3e81428fc1893e0"
---

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

Discussion

# [8 ways to add an element to the beginning of a list and string in Python](https://ra1nbow1.hashnode.dev/8-ways-to-add-an-element-to-the-beginning-of-a-list-and-string-in-python?utm_source=hashnode&utm_medium=feed)

Let's look at different methods for adding elements to the beginning of a list and string: concatenation, insert, append, extend, rjust, and f-strings

Jun 3, 2022 · 4 min read · ra1nbow1.hashnode.dev  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#python](https://hashnode.com/tag/python)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Matvey Romanov](https://hashnode.com/@ra1nbow1)

@ra1nbow1 · Moscow, Russia

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

webdev

I'm a professional FullStack self-taught developer from Moscow. I truly love web-development and all that it concerns. Making websites is awesome. Follow me if you need some help

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
