karekok 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
karekok-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.5
2
+ Name: karekok
3
+ Version: 0.1.0
4
+ Summary: Karekök bulan kütüphane
5
+ Author: Xir
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # karekok
10
+
11
+ Karekök bulan küçük bir Python kütüphanesi.
12
+
13
+ pip install karekok
@@ -0,0 +1,5 @@
1
+ # karekok
2
+
3
+ Karekök bulan küçük bir Python kütüphanesi.
4
+
5
+ pip install karekok
@@ -0,0 +1,19 @@
1
+ def karekok(sayi):
2
+ if sayi < 0:
3
+ raise ValueError("Sayı negatif olamaz")
4
+ n = 0
5
+ pay = 1
6
+ payda = 10
7
+
8
+ while True:
9
+ if n*n == sayi:
10
+ return n
11
+ else:
12
+ n += 1
13
+ if n*n > sayi:
14
+ while True:
15
+ if round((n - 1 + (pay/payda))**2, 10) == sayi:
16
+ return n - 1 + (pay/payda)
17
+ if round((n - 1 + (pay/payda))**2, 10) > sayi:
18
+ return n - 1 + ((pay-1)/payda)
19
+ pay += 1
@@ -0,0 +1,11 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "karekok"
7
+ version = "0.1.0"
8
+ description = "Karekök bulan kütüphane"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [{name = "Xir"}]