From f0e6174d7d65d5578035443d65b566b64a8261df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Wed, 20 Sep 2023 21:34:13 +0200 Subject: [PATCH 1/5] 2 modifications --- week_0/ex_0_beginner/ex_0_beginner_runfile.py | 4 +-- week_0/ex_0_beginner/ex_0_beginner_submit.txt | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/week_0/ex_0_beginner/ex_0_beginner_runfile.py b/week_0/ex_0_beginner/ex_0_beginner_runfile.py index b3db532..313869c 100644 --- a/week_0/ex_0_beginner/ex_0_beginner_runfile.py +++ b/week_0/ex_0_beginner/ex_0_beginner_runfile.py @@ -1,5 +1,5 @@ import this -print("\n"+"TYPE YOUR RESPONSE TO PROMPT 1 HERE") +print("\n"+"Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in.") -print("\n"+"TYPE YOUR RESPONSE TO PROMPT 2 HERE") \ No newline at end of file +print("\n"+"The last place where I was without a computer available was at the beach in Spain in august.") \ No newline at end of file diff --git a/week_0/ex_0_beginner/ex_0_beginner_submit.txt b/week_0/ex_0_beginner/ex_0_beginner_submit.txt index b4d44a7..c684e87 100644 --- a/week_0/ex_0_beginner/ex_0_beginner_submit.txt +++ b/week_0/ex_0_beginner/ex_0_beginner_submit.txt @@ -1 +1,28 @@ Copy and paste output of ex_0_beginner_runfile.py below: +The Zen of Python, by Tim Peters + +Beautiful is better than ugly. +Explicit is better than implicit. +Simple is better than complex. +Complex is better than complicated. +Flat is better than nested. +Sparse is better than dense. +Readability counts. +Special cases aren't special enough to break the rules. +Although practicality beats purity. +Errors should never pass silently. +Unless explicitly silenced. +In the face of ambiguity, refuse the temptation to guess. +There should be one-- and preferably only one --obvious way to do it. +Although that way may not be obvious at first unless you're Dutch. +Now is better than never. +Although never is often better than *right* now. +If the implementation is hard to explain, it's a bad idea. +If the implementation is easy to explain, it may be a good idea. +Namespaces are one honking great idea -- let's do more of those! + +Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in. + +The last place where I was without a computer available was at the beach in Spain in august. + +Process finished with exit code 0 From 7531881bb2fa29274c0ca4fdfb2af8d05c29b962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Wed, 20 Sep 2023 21:34:46 +0200 Subject: [PATCH 2/5] 2 modifications --- .idea/.gitignore | 3 +++ .idea/CARe_Python_Class_2023.iml | 8 ++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 6 files changed, 35 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/CARe_Python_Class_2023.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/CARe_Python_Class_2023.iml b/.idea/CARe_Python_Class_2023.iml new file mode 100644 index 0000000..909438d --- /dev/null +++ b/.idea/CARe_Python_Class_2023.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a971a2c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7ce4733 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From c96a9f4161acdc83bce8918cfefbe74f21ed7ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Thu, 21 Sep 2023 17:27:45 +0200 Subject: [PATCH 3/5] 2 modifications --- week_0/ex_0_beginner/ex_0_beginner_submit.txt | 29 ++----------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/week_0/ex_0_beginner/ex_0_beginner_submit.txt b/week_0/ex_0_beginner/ex_0_beginner_submit.txt index c684e87..73ad575 100644 --- a/week_0/ex_0_beginner/ex_0_beginner_submit.txt +++ b/week_0/ex_0_beginner/ex_0_beginner_submit.txt @@ -1,28 +1,5 @@ -Copy and paste output of ex_0_beginner_runfile.py below: -The Zen of Python, by Tim Peters +import this -Beautiful is better than ugly. -Explicit is better than implicit. -Simple is better than complex. -Complex is better than complicated. -Flat is better than nested. -Sparse is better than dense. -Readability counts. -Special cases aren't special enough to break the rules. -Although practicality beats purity. -Errors should never pass silently. -Unless explicitly silenced. -In the face of ambiguity, refuse the temptation to guess. -There should be one-- and preferably only one --obvious way to do it. -Although that way may not be obvious at first unless you're Dutch. -Now is better than never. -Although never is often better than *right* now. -If the implementation is hard to explain, it's a bad idea. -If the implementation is easy to explain, it may be a good idea. -Namespaces are one honking great idea -- let's do more of those! +print("\n"+"Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in.") -Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in. - -The last place where I was without a computer available was at the beach in Spain in august. - -Process finished with exit code 0 +print("\n"+"The last place where I was without a computer available was at the beach in Spain in august.") \ No newline at end of file From 05916002e2d1d4cd0277e838a2d42158b32e59d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Thu, 21 Sep 2023 18:45:45 +0200 Subject: [PATCH 4/5] 2 modifications --- week_0/ex_0_beginner/ex_0_beginner_submit.txt | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/week_0/ex_0_beginner/ex_0_beginner_submit.txt b/week_0/ex_0_beginner/ex_0_beginner_submit.txt index 73ad575..bc5a0eb 100644 --- a/week_0/ex_0_beginner/ex_0_beginner_submit.txt +++ b/week_0/ex_0_beginner/ex_0_beginner_submit.txt @@ -1,5 +1,27 @@ -import this +The Zen of Python, by Tim Peters -print("\n"+"Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in.") +Beautiful is better than ugly. +Explicit is better than implicit. +Simple is better than complex. +Complex is better than complicated. +Flat is better than nested. +Sparse is better than dense. +Readability counts. +Special cases aren't special enough to break the rules. +Although practicality beats purity. +Errors should never pass silently. +Unless explicitly silenced. +In the face of ambiguity, refuse the temptation to guess. +There should be one-- and preferably only one --obvious way to do it. +Although that way may not be obvious at first unless you're Dutch. +Now is better than never. +Although never is often better than *right* now. +If the implementation is hard to explain, it's a bad idea. +If the implementation is easy to explain, it may be a good idea. +Namespaces are one honking great idea -- let's do more of those! -print("\n"+"The last place where I was without a computer available was at the beach in Spain in august.") \ No newline at end of file +Hello my name is Hélène and I'm in M1 of CARe. I want to learn programming language because today informatics take a huge space in our lives but also in biology which is a field that I learn and I want to work in. + +The last place where I was without a computer available was at the beach in Spain in august. + +Process finished with exit code 0 \ No newline at end of file From e295a68852994f333c9f74f078c6bfe2c1f3a3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Thu, 19 Oct 2023 12:36:03 +0200 Subject: [PATCH 5/5] 2 modifications --- .../ex_0_intermediate_runfile.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/week_0/ex_0_intermediate/ex_0_intermediate_runfile.py b/week_0/ex_0_intermediate/ex_0_intermediate_runfile.py index 919a326..730e358 100644 --- a/week_0/ex_0_intermediate/ex_0_intermediate_runfile.py +++ b/week_0/ex_0_intermediate/ex_0_intermediate_runfile.py @@ -1 +1,16 @@ -#YOUR CODE FOR EX_0 INTERMEDIATE HERE \ No newline at end of file +import math + +initial_count = input("Enter the initial cell count:") +final_count = input("Enter the final cell count:") +time = input("Enter the time elapsed ( in hours):") + +initial_count = float(initial_count) +final_count = float(final_count) +time = float(time) + +growth_rate = (math.log(final_count) - math.log(initial_count)) / time + +if growth_rate is not None : + print(f"The growth rate of the microbial culture is : {growth_rate} per hours") +else : + print("Invalid input") \ No newline at end of file