Question: 3.13 LAB: String formatting by format() argument index str.format() supports replacement with argument values via specification of each value's index. This allows you to use
3.13 LAB: String formatting by format() argument index str.format() supports replacement with argument values via specification of each value's index. This allows you to use a single value in the format) argument list for multiple replacements. For example print("101121121".Format(Al,"5!)) will yield abb Use this formatting capability to demonstrate formation of a compound word from two input words from the user, as demonstrated below if the two input words are dog and house print the following message doghouse doghouse LAR ACTIVITY 3.13.1: CAB: String formatting by format) argument index 0/2 main.py Load default template 1 wordt input() 2 word2 = Input a print (word, word)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
