String Formatting & Escape Characters Task

Programming Questions

  1. Write a program formatting string using the % operator.
  2. Write a program Injecting string using the % operator.
  3.  Write a program float point precision using the % operator.
  4.  Write a program multiple formatting the single statement.
  5. Write a program to create a string formatting by f-strings.
  6. Write a program to create a string using the template method.
  7. Write a program using to repr() to the string.
  8. write a program using  to escape characters. 

Theory Questions

1. What is string formatting for example?

2. What is string interpolation /f-string.

3. What are template strings.

4. What are escape characters.

5. What is repr().