From 404d43e27fce005f4fa71eec66f789bd697690cf Mon Sep 17 00:00:00 2001 From: Thomas Tang Date: Fri, 10 Mar 2023 18:32:28 +0800 Subject: [PATCH 1/2] find_number --- find_number.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 find_number.py diff --git a/find_number.py b/find_number.py new file mode 100644 index 00000000..77280b1d --- /dev/null +++ b/find_number.py @@ -0,0 +1,6 @@ +l=[] +for i in range(2000, 3201): + if (i%7==0) and (i%5!=0): + l.append(str(i)) + +print(','.join(l)) \ No newline at end of file From ea81376b4339b9996c27001c8dc81564c064971f Mon Sep 17 00:00:00 2001 From: Thomas Tang Date: Tue, 25 Jul 2023 22:38:44 +0800 Subject: [PATCH 2/2] Create factorial.py test --- factorial.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 factorial.py diff --git a/factorial.py b/factorial.py new file mode 100644 index 00000000..18764932 --- /dev/null +++ b/factorial.py @@ -0,0 +1,7 @@ +def fact(x): + if x == 0: + return 1 + return x * fact(x - 1) + +x=int(input()) +print(fact(x)) \ No newline at end of file