Commit 175d3e3d by BellCodeEditor

auto save

parent 517ab3cd
Showing with 8 additions and 3 deletions
def str(a):
str1 =0
for i in a :
str1=str1+i
return str1
def s():
total = []
while True:
unit= input("str:")
if unit== 'q':str
if unit== 'q':
break
else:
try:
......@@ -15,4 +20,4 @@ def s():
total.append(unit)
return total
a=s()
print(a)
\ No newline at end of file
print(str(a))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment