Im working on coding bat questions. trying to rotate the lift one to the left. My code always return None as a result. what can i do?
**
def rotate_left3(nums): 
  a = nums.pop(0)
  return nums.append(a)
**
Im working on coding bat questions. trying to rotate the lift one to the left. My code always return None as a result. what can i do?
**
def rotate_left3(nums): 
  a = nums.pop(0)
  return nums.append(a)
**
 
    
    Because append is a method without a return value. 
Any Python function without a return value will return None
Split the lines to return the appended list.
Or return nums + [a]
