Commit 85387bd2 by BellCodeEditor

save project

parent 2a7b0245
Showing with 10 additions and 3 deletions
...@@ -5,11 +5,18 @@ def new_input(): ...@@ -5,11 +5,18 @@ def new_input():
if unit== 'q': if unit== 'q':
break break
else: else:
pass
try: try:
unit=int(unit) unit=int(unit)
except: except:
print('a') print('a')
else: else:
total.append(unit) total.append(unit)
new_input() return total
print(total)
\ No newline at end of file def c(list):
c=0
for i in list:
c=c+1
return c
print(c(new_input()))
\ 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