Many web forms involve addresses. Registering an account or entering shipping information. When dealing with international addresses you might run into problems with countries that have provinces instead of states, or zip codes or telephone numbers having different rules. I ran into the former at work recently.
We get an XML message from another service with addresses. Depending on what country code is in that message we look for either
<Province>XY</Province>. I wanted to fix the problem once and for all by using a list of all country codes with provinces. Surprisingly, my Googlefu was not good enough to find a satisfactory answer. I figured someone might want this nice consolidated list one day, if only myself, so I wrote a quick python script that will scrape the CIA World Factbook looking for information about the countries provinces. The script and details about it can be found in this post.
Without further ado, here is a consolidated lists of countries that have provinces instead of states (unverified by human hands):
Congo, Democratic Republic of the(CD)
Papua New Guinea(PG)
Sao Tome and Principe(ST)
Serbia and Montenegro/Federal Republic of Yugoslavia(CS)