Dec-01-2019, 03:53 PM
It should work may need to strip of new line.
with open('file6.txt') as f: for user in f: print(user.strip())
Output:test-user
ram
kumar
raj
What method is request.set_UserName(i)
do you use Requests?