The British royal family is renowned for their extravagant lifestyle and vast fortune, but how did they amass so much money over the centuries?
The Crown Estate, which is a portfolio of land, property, and assets controlled by the monarchy on behalf of the British people, is one of the primary sources of royal family income. The Crown Estate contains sites such as Buckingham Palace, Windsor Castle, and the Tower of London, in addition to significant agricultural and urban land holdings. Since the 11th century, the Crown Estate has been controlled by the royal family, and its worth has expanded greatly owing to increasing land prices and the construction of new properties.

Another source of royal wealth is their property. The royal family has invested in businesses and acquired a great collection of artworks, jewels, and other artifacts. The royal family has owned gold mines, BP, and Royal Dutch Shell.
The Sovereign Grant, a contribution from the British government to finance the monarchy, supplements the royal family’s wealth. A method that includes Crown Estate profits and inflation determines the Sovereign Grant.

The royal family has had financial difficulties throughout the years despite their affluence. For instance, the royal family ran up unprecedented amounts of debt during the reign of King George III as a direct result of Britain’s costly involvement in many wars. They were compelled to sell up much of their possessions, including pricey works of art and jewels, to satisfy their creditors and repay their obligations.
With an estimated net worth is over $88 billion, the royals have always had a substantial amount of money, but they have had to adjust to fluctuating economic situations and find new methods to expand their fortune throughout time. The royal family has consistently shown its ability to amass and protect riches, whether via the Crown Estate, private holdings, or investments.

This script examines four text files regarding the royal family’s land, art, jewels, and investments. It searches each file for dollar values and adds them to compute each asset’s worth. Finally, it adds together the royal family’s holdings and publishes the total worth.
This script is an illustration of the royal family’s riches and contains many assumptions. The script assumes the input files’ values are in U.S. dollars and does not account for any assets not listed. The script also expects dollar signs and commas in file values.
# Initialize variables to store the royal family's assets
land = 0
art = 0
jewelry = 0
investments = 0
# Calculate the value of the royal family's land holdings
with open('royal_family_land.txt', 'r') as f:
for line in f:
# Split the line into a list of words
words = line.split()
# If the line mentions a value, add it to the land total
if '$' in words:
land += int(words[-1].replace('$', '').replace(',', ''))
# Calculate the value of the royal family's art collection
with open('royal_family_art.txt', 'r') as f:
for line in f:
# Split the line into a list of words
words = line.split()
# If the line mentions a value, add it to the art total
if '$' in words:
art += int(words[-1].replace('$', '').replace(',', ''))
# Calculate the value of the royal family's jewelry collection
with open('royal_family_jewelry.txt', 'r') as f:
for line in f:
# Split the line into a list of words
words = line.split()
# If the line mentions a value, add it to the jewelry total
if '$' in words:
jewelry += int(words[-1].replace('$', '').replace(',', ''))
# Calculate the value of the royal family's investments
with open('royal_family_investments.txt', 'r') as f:
for line in f:
# Split the line into a list of words
words = line.split()
# If the line mentions a value, add it to the investments total
if '$' in words:
investments += int(words[-1].replace('$', '').replace(',', ''))
# Calculate the total wealth of the royal family
total_wealth = land + art + jewelry + investments
# Print the total wealth of the royal family
print(f"Total Wealth: ${total_wealth:,}")