Q: How to add the new line without space after ',' in print() in Python There is two data and printing the length of them.
Code:
print(len(author),'\n',len(authorUnique))

and output:
5439 
 4443

I would like to get:
5439 
4443

What can I do to get what I want?

A: Don't print them at once! It's much simpler to split this up into two separate print statements, which also solves your problem:
print(len(author))
print(len(authorUnique))

If you do only want to use one print statement, however, you need to specify the right separator token, like this:
print(len(author), len(authorUnique), sep='\n')

