I\'m new here and also new to Python. I wonder what does f in print(f\'Column names are {\"-\".join(row)}\') do I tried deleting it and then \'Column n
f
print(f\'Column names are {\"-\".join(row)}\')
String starting with f are formatted string litrals.
Suppose you have a variable:
pi = 3.14
To catenate it to a string you'd do:
s = "pi = " + str(pi)
Formatted strings come in handy here. Using them you can use this do the same:
s = f"pi = {pi}"
{pi} is simply replaced by the value in the pi
{pi}
pi