We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e346ca commit 615e683Copy full SHA for 615e683
true/tpy.py
@@ -2,9 +2,12 @@
2
import sys
3
try:code=open(sys.argv[1]).read()
4
except:print(f"Usage: python {__file__.split(chr(0x5c))[-1]} \"(file name)\"");exit()
5
-targ="";c="";sub=tp=p=0;ts=[];s=[];ld=[]
+p=0;ts=[];s=[]
6
while 1:
7
- if code[p]=='"':p+=1;s.append(code[p:code.index('"',p)]);p=code.index('"',p)
8
- elif code[p]==".":print(s.pop())
9
- if code[p]=="\n":break
10
- p+=1
+ if code[p] == '"' :
+ p+=1;s.append(code[p:code.index('"',p)])
+ p=code.index('"',p)
+ elif code[p] == "." : print(s.pop())
11
+ elif code[p] == "," : s.append(input())
12
+ if code[p] == "\n" : break
13
+ p+=1
0 commit comments