How To Print Loop Output In One Line Python