<jupyter_start><jupyter_text>Day-4 Assignment<jupyter_code># Print the first Armstrong number in the range of 1042000 to 702648265 and exit the loop as soon as you encounter the first armstrong number.
# Use while loop.
x=1042000
while x <702648265:
    order = len(str(x))
    sum = 0

    temp = x
    while temp > 0:
        digit = temp % 10
        sum += digit ** order
        temp //= 10

    if x == sum:
        print("The First Armstrong Nubmer is - ", x)
        break
    x = x+1<jupyter_output>The First Armstrong Nubmer is -  1741725
{'fraction_non_alphanumeric': 0.08394160583941605, 'fraction_numerical': 0.08576642335766424, 'mean_word_length': 2.4968152866242037, 'pattern_counts': {'":': 0, '<': 5, '<?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': '653022', 'license': 'Apache-2.0', 'n_tokens_mistral': 217, 'n_tokens_neox': 180, 'n_words': 68, 'path': 'Day4_AssignmentPython.ipynb', 'repo_name': 'Ashmitha-Pasanna/LetsUpgrade-Python-assignment', 'size': '548'}