Answered step by step
Verified Expert Solution
Question
1 Approved Answer
here's my python code the problem is I'm getting error AttributeError: 'NoneType' object has no attribute 'isnumeric' and I can't call function letter_counter. help def
here's my python code
the problem is I'm getting error
AttributeError: 'NoneType' object has no attribute 'isnumeric'
and I can't call function letter_counter.
help
def calculate_average(): numbers [] sum1 = 0 for i in range(5): X = int(input("Please enter an integer: ")) item = x numbers.append(item) for num in numbers: sum1 += int(num) avg = sum1/5 print(" The average is: ", avg) print("The numbers greater that the average are:") for x in numbers: if x > avg: print(x, end="") def letter_counter(string): used for ch in string: count - @ for c in string: if c == ch: count += 1 if ch not in used and ch.isalpha(): print("The letter +ch + is in", string, str(count) + used += ch time(s)") def get_choice(): print("Please enter the number of the option you'd like: ",end = "") number = input() while(True): if number.isnumeric(): number = int(number) if(number>=1 and numberStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started