arithmetic or geometric sequence in python -
    do know how can write code in python including function takes list , find out if arithmetic or geometric? wrote code boolean , doesn't arithmetic or geometric ,  has output.   l=[int(x) x in input("please enter list:").split()]  def arithemetic(l):   i=1   if(l[0]+l[i]==l[i+1]):     return true   i+=1  def geometric(l):   i=1   if(l[0]*l[i]==l[i+1]):     return true   i+=1  def isarithemeticorgeometric(l):   if(arithemetic(l)):     print(arithemetic(l))   elif(geometric(l)):     print(geometric(l))  print(isarithemeticorgeometric(l))          there few mistakes here, try go on them 1 one   asking list   l=[int(x) x in input("please enter list:").split()]   this throw valueerror  when gets fed non-numeric type. round float  int   problem 1 can solve surrounding while  loop , try-catch block   while true:     try:         l=[int(x) x in input("please enter list:").split()]         break     except valueerror:         pass   the problem int  can solve...