fork download
  1. # your code goes here
  2. from os import path
  3. import inspect
  4.  
  5.  
  6. def myfunction():
  7. print(inspect.currentframe().f_code.co_name, path.basename(__file__))
  8. print(f"{inspect.currentframe().f_code.co_name} {path.basename(__file__)}")
  9. print("{} {}".format(inspect.currentframe().f_code.co_name, path.basename(__file__)))
  10.  
  11.  
  12. myfunction()
Success #stdin #stdout 0.04s 10048KB
stdin
Standard input is empty
stdout
myfunction prog
myfunction prog
myfunction prog