PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Program():
def __init__(self):
y = open("sample.py", "a")
while True:
try:
self.x = input()
y.write(self.x+"\n")
except:
break
y.close()
self.printer()
self.coder()
def printer(self):
y = open("sample.py", "r")
print("This is Your Code:\n", y.read())
y.close()
print(">>This is Your Code\'s Output:")
def coder(self):
try:
def main2():
import sample
main2()
except:
print(">>Sorry! Can\'t execute Your Code")
def main():
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run