<jupyter_start><jupyter_text>TO FIND FIRST ARMSTRONG NUMBER IN THE RANGE OF 1042000 TO 702648265<jupyter_code>lower=1042000
upper = 702648265
for num in range (lower, upper + 1):
    order= len (str(num))
    sum = 0
    temp = num
    while temp > 0:
        digit = temp % 10
        sum += digit ** order
        temp //= 10

    if num == sum:
        print(num)
        break<jupyter_output>1741725
{'fraction_non_alphanumeric': 0.09429280397022333, 'fraction_numerical': 0.1141439205955335, 'mean_word_length': 2.4237288135593222, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '361794', 'license': 'Apache-2.0', 'n_tokens_mistral': 181, 'n_tokens_neox': 141, 'n_words': 44, 'path': 'day 4 assignment .ipynb', 'repo_name': 'VAISHNAVICHERUKURI/letsupgrade-python', 'size': '403'}