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
This is called f-strings and are quite straightforward : when using an "f" in front of a string, all the variables inside curly brackets are read and replaced by there value. For example :
age = 18
message = f"You are {age} years old"
print(message)
Will return "You are 18 years old"
This is similar to str.format (https://docs.python.org/3/library/stdtypes.html#str.format) but in a more concise way.