Skip to main content
2 of 3
added 213 characters in body
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697

Python 2, 33 bytes

print len(open(__file__).read())# 

Try it online!

Try it doubled

Explanation

This opens up the source code using open(__file__).read() and gets its length using len the # prevents any additional code from being read. When the source is doubled so is the length.

Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697