String format empty string caused extra space in print
String format empty string caused extra space in print Question: I want to string format a sentence as below: integer = 1 if integer != 1: n_val, book = integer, ‘books’ else: n_val, book =”, ‘book’ print(f’Fetch the top {n_val} children {book}.’) and I expected to see: Fetch the top 3 children books. or Fetch …