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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!