From 3a8046595f2b175c68f63c1bae9cb7a2fbf59292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B1=D8=B2=D8=A7=D9=86=20=D8=A7=D9=84=D9=85=D8=B7=D9=8A?= =?UTF-8?q?=D8=B1=D9=8A?= Date: Mon, 23 Feb 2026 10:35:57 +0300 Subject: [PATCH] solve lab 102 --- lab_functions_102.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lab_functions_102.py diff --git a/lab_functions_102.py b/lab_functions_102.py new file mode 100644 index 0000000..f773f16 --- /dev/null +++ b/lab_functions_102.py @@ -0,0 +1,34 @@ +def find_primes(start: int, end: int): + for num in range(start, end + 1): + if num < 2: + continue + + is_prime = True + + for div in range(2, num): + if num % div == 0: + is_prime = False + break + if is_prime: + print(num) + +find_primes(25, 50) + + + + +def split_camel_case(text): + if type(text) != str: + return "Error: input must be a string" + + result = "" + + for ch in text: + if ch.isupper(): + result += " " + ch.lower() + else: + result += ch + + return result + +print(split_camel_case("helloWorldThere"))