1

This code will output 1 in python3 and 2 in python2

x = 1
y = [x for x in [1,2]]
return x

why ? didn't find any documentation on it.

WebQube
  • 7,680
  • 9
  • 45
  • 83

0 Answers0