shrwn

Python String Formatting

Python has some of the very good and easy string formatters . We will be discussing about the new format style in Python . hello = “Hello ” world = “World ” print(“{}”.format(hello)) #outputs : Hello print(“{} {}”.format(hello,world)) #outputs : Hello World print(“{1} {0}”.format(hello,world)) #Outputs : World Hello #See the position index Truncating strings value…

Read more...

Python – Installation and Usage

The first step before jumping inside Python , we should have a clear understanding on why we are we into python . Python is a scripting language , it is a powerful , easy to use language . The readabilty structure of Python makes it the best . Python syntax is easy , so programmers…

Read more...