U.N. Secretary-General Kofi Annan praised Iraqis for their determination in forming a government despite violence across the country .