Neudesic data-processing utilities often receive text alongside numeric configuration values. Implement one function that normalizes a text value and finds all Armstrong numbers within a specified range.
Your function must:
0 through limit, inclusive. A number is an Armstrong number when it equals the sum of each digit raised to the number of digits in the number.Input consists of an ASCII string text and a non-negative integer limit. Return a dictionary with two keys: transformed, a string, and armstrong_numbers, a list of integers in ascending order.
Example 1
Input: text = " Neudesic, Azure Team! ", limit = 500
Output: {"transformed": "team azure neudesic", "armstrong_numbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407]}
Punctuation becomes spaces, words are normalized, and their order is reversed.
Example 2
Input: text = "Python## Algorithms", limit = 10
Output: {"transformed": "algorithms python", "armstrong_numbers": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
0 <= len(text) <= 10^50 <= limit <= 10^6text contains ASCII characters only.def process_neudesic_data(text, limit):