Implementation of Positional And Keyword Arguments In String Formatting - Python Programming -Part 7

preview_player
Показать описание
In this Video , I have explained The syntax of Format Function.

Format Functions takes 2 arguments

1.Positional arguments
2.Keyword arguments
Positional Arguments are those where Replacement fields are Assigned Whether with a indexing Numbers or Kept empty where we give direct values to the format functions as "John" . Where as
Keyword Arguments are those where Replacement fields are Assigned With an Identifier / Alphabets / Words etc. For example if i take {name} .. In format function i will take name= "John" .. Such arguments are called as Keyword arguments.

The importance of Learning This is that , Positional arguments should always precede Our Keyword arguments , therefore Avoiding the Compile time errors.

The implementation part of String formatting is explained in the video in great detail. Therefore watch the complete video to understand it better.
#Strings #Arguments #PythonCourse

Please Subscribe ,Share and Like to show your support
Рекомендации по теме
welcome to shbcf.ru