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 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..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 +1,27 @@ -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 \ No newline at end of file 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