From e4861889e5560aba08e4c3c2ac0c46aaa1647902 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 21 Dec 2024 13:09:17 +0800 Subject: [PATCH] save project --- func.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 func.py diff --git a/func.py b/func.py new file mode 100644 index 0000000..97bf39b --- /dev/null +++ b/func.py @@ -0,0 +1,24 @@ +def q(): + t=[] + while True: + a=input('please:') + if a=='q': + break + else: + try: + b=int(a) + except: + print( 'dnra hmsu7d9kcdg') + else: + t.append(a) + finally: + print('*'*30) + return a +def sum(b): + count=0 + for i in b: + count=count+i + return count + price=s() + pay=sum(int(price)) + print(' ktg cf'+str(pay)+'hcfehw') -- libgit2 0.25.0