Question: 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.

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 number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!