Python Program to Display Its Own Source Code as Output Tutorial

preview_player
Показать описание
In this tutorial, we have a Python Program which displays its own source code as output.

we use __file__ variable to get the name of the source file along with path and then we open that file and display its contents.

our Social Media Pages

Our Website

#ExampleProgram
Рекомендации по теме
Комментарии
Автор

Nice spub bro anil good job keep doing...:D

Mr_Nobody-nw
Автор

Can we make it in a way so that it prints only the code from 'n' (or 'n' to 'm' ) line?

Noiisssyyyy
Автор

Will it work in the command prompt of the program

zert
welcome to shbcf.ru