Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago