Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

type error float object cannot be interpreted as an integer

Asked by Brian Kennedy Jun 7, 2024 1.8K views 1 answer
Share

About this question

 I am currently engaged in a particular task related to working on a program that can calculate the average age of a group of people. I have a list of the ages and tried to find the average using a for loop. However, when I ran the program, I encountered an issue stating that “TypeError:’float’ Object which cannot be interpreted as an integer”. How can I troubleshoot and resolve this particular issue? 

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.