I am trying to get a newline after the path is printed.
# Set the directory path
path = '/home/andy/Downloads'
print (path)
print /n
# Read the content of the file
files = os.listdir(path)
# Print the content of the directory
for file in files:
print(file)
Here are basic ways of printing double newline without the unwanted space:
# as Rob has shown:
print(path)
print()
# changing the end string:
print(path, end='\n\n')
# creating a string with an additional newline:
print(f'{path}\n')