|
@@ -172,11 +172,11 @@ def count_AGTC(dna):
|
|
|
return dna.count('A'), dna.count('G'), dna.count('T'), dna.count('C')
|
|
|
|
|
|
|
|
|
-assert count_AGTC('AGGTC') == (1, 2, 1, 1)
|
|
|
-assert count_AGTC('AAAATTT') == (4, 0, 3, 0)
|
|
|
-assert count_AGTC('AGTTTTT') == (1, 1, 5, 0)
|
|
|
-assert count_AGTC('CCT') == (0, 0, 1, 2)
|
|
|
-print('Проверки пройдены')
|
|
|
+# assert count_AGTC('AGGTC') == (1, 2, 1, 1)
|
|
|
+# assert count_AGTC('AAAATTT') == (4, 0, 3, 0)
|
|
|
+# assert count_AGTC('AGTTTTT') == (1, 1, 5, 0)
|
|
|
+# assert count_AGTC('CCT') == (0, 0, 1, 2)
|
|
|
+# print('Проверки пройдены')
|
|
|
|
|
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
@@ -202,3 +202,33 @@ def get_even(lst, number):
|
|
|
lst (_type_): _description_
|
|
|
number (_type_): _description_
|
|
|
"""
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# first : int = 100
|
|
|
+
|
|
|
+def add_numbers(a: int, b: int | float | str) -> int:
|
|
|
+ return a + b
|
|
|
+
|
|
|
+# print(add_numbers.__annotations__)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# from typing import List, Dict, Tuple, Optional, Any, Union
|
|
|
+
|
|
|
+def list_upper(lst: List[str]):
|
|
|
+ for elem in lst:
|
|
|
+ print(elem.upper())
|
|
|
+
|
|
|
+# e: Any = 12
|
|
|
+# e = "sdfsdf"
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+def first_repeated_word(s: str):
|
|
|
+ l = s.split()
|
|
|
+ for i in l:
|
|
|
+ print(i)
|
|
|
+
|
|
|
+first_repeated_word("ab ca bc Ab cA aB bc")
|
|
|
+
|