#!/usr/bin/env python2 # -*- coding: utf-8 -*- def is_numeric(InputList): OutputLits = [] for i in range(len(InputList)): t = InputList[i] OutputLits.append(isinstance(t,(int, float))) return OutputLits class Point: def __init__(self, StartList): self.StartList = StartList def retx(self): return self x = Point([2]) print(x.retx())