<jupyter_start><jupyter_text>print the first Armstrong number in the range of 1042000 to 702648265 and exit the loop as soon you encounter the first armstrong number.<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)<jupyter_output>1741725
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.1010989010989011, 'mean_word_length': 2.864406779661017, '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': '534924', 'license': 'Apache-2.0', 'n_tokens_mistral': 183, 'n_tokens_neox': 151, 'n_words': 47, 'path': 'Day 4 Assignment.ipynb', 'repo_name': 'nikitha902/lets-upgrade-python-B7', 'size': '455'}