Given a string s that contains alphanumeric and special characters. Write a python program that return the sum, the high
Posted: Fri Jul 08, 2022 6:36 am
Given a string s that contains alphanumeric and specialcharacters. Write a python program that return the sum, the highestnumber and the average of the digits that appear in the string. Thetotal number of all alphabetic characters and total number ofnon-alphanumeric characters (e.g., # and @).String s = “Pynative83@56#96”
Sum is of numeric characters: 37 Average is 6.166666666666667 Highest is 9 Sum of alphabetic characters: 8 Sum of Non alphanumeric characters: 2
Sum is of numeric characters: 37 Average is 6.166666666666667 Highest is 9 Sum of alphabetic characters: 8 Sum of Non alphanumeric characters: 2