+ 3
[ASSIGNMENT] Python3
Python script which prints its own source code đ
5 Answers
+ 7
Sonny
Please review the headers used as well as other details within the thread below. Thanks.
https://www.sololearn.com/discuss/1108024/?ref=app
+ 4
+ 3
You should also propose this as an assignment in the lesson factory !
my python (without open (__file__)):
https://code.sololearn.com/cXvZvLT3iLzC/#py
+ 2
One-liner:
with open(__file__) as f: print(f.read())
+ 1
Does that only happen in the Code Playground? Or in other Python environments as well?