---
title: "Discussion on \"Day-28 f-strings\" | Hashnode"
description: "Discussion on \"Day-28 f-strings\". String formatting in python\nString formatting can be done in python using the format method.\ntxt = \"For only {price:.2f} dollars!\"\nprint(txt.format(price = 49))\n\nf-strings in python\nIt is a new string"
url: "https://hashnode.com/posts/day-28-f-strings/6a2f194e847bad44d7f890f2"
---

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

Discussion

# [Day-28 f-strings](https://codingsplash.hashnode.dev/day-28-f-strings?utm_source=hashnode&utm_medium=feed)

String formatting in python String formatting can be done in python using the format method. txt = "For only {price:.2f} dollars!" print(txt.format(price = 49)) f-strings in python It is a new string

Jun 14 · 3 min read · codingsplash.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#codingsplash](https://hashnode.com/tag/codingsplash)

## Written by

[CodingSplash](https://hashnode.com/@codingsplash)

@codingsplash

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

Learn. Mentor. Intern. Get Hired.

I am Data Science student, has a little bit knowledge on Web Development. I also love writing and editing as my hobby. Passionate to explore the world.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
