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(): def s():
total = [] total = []
while True: while True:
unit= input("str:") unit= input("str:")
if unit== 'q':str if unit== 'q':
break break
else: else:
try: try:
...@@ -15,4 +20,4 @@ def s(): ...@@ -15,4 +20,4 @@ def s():
total.append(unit) total.append(unit)
return total return total
a=s() a=s()
print(a) print(str(a))
\ No newline at end of file \ 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