Posts

Showing posts from March, 2021

How to use F string in Python or how to creat f string in python, Python For Beginners

Image
  Python, F String, string formatting   i'm going to talk about f strings and python so without any delay let's take a look at today's topic We’ll start to understand what are strings in python? Then we shall see string formatting and various ways to format strings moving ahead we'll then discuss f-strings its implementations and limitations    so what are strings strings is the immutable data type which cannot be changed once we declare it in a program so what does this immutable data type mean right well this means that every time we define a string its object is created and now if you try to manipulate the same string a new object gets created so how can we define strings well we use single code or double quote to define a string in a single line or three chords to declare string on a multiple line so strings are basically arrays of bytes representing unit code character speaking about the character did you know python does not have any character data ...