Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Average of lists
#2
First off, your indentation is incorrect. As you've posted it, it cannot generate an import error. The last two lines need to be indented further.

As for the problem you mentioned - you should either remove the type annotations, or add an import for List
from typing import List
Reply


Messages In This Thread
Average of lists - by leandemg - Nov-11-2018, 05:08 PM
RE: Average of lists - by micseydel - Nov-11-2018, 05:21 PM
RE: Average of lists - by imamy - Nov-11-2018, 06:37 PM
RE: Average of lists - by woooee - Nov-11-2018, 08:30 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020