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

object arrays are not currently supported

Asked by Ranjana Admin Apr 13, 2021 756 views 1 answer
Share

About this question

I am using code:
def front_back(a, b):
 # +++your code here+++
  if len(a) % 2 == 0 && len(b) % 2 == 0:
    return a[:(len(a)/2)] + b[:(len(b)/2)] + a[(len(a)/2):] + b[(len(b)/2):] 
  else:
    #todo! Not yet done. 
  return
I'm getting an error in the IF conditional. What am I doing wrong?

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.