Fundamental Programming Variables & Scope Beginner
Q What does this Python code print? def f(x, L=[]): L.append(x) return L f(1) print(f(2))
  • A [[1], 2]
  • B [1, 2]
  • C [1]
  • D [2]
Leave a Comment