first commit

This commit is contained in:
2025-11-26 13:56:55 +01:00
commit c5f25901e1
188 changed files with 52799 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
.kotlin
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

8
Ugesedler/Ugeseddel-9-05-11-2025/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.13" />
</component>
<component name="KubernetesApiProvider"><![CDATA[{}]]></component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="zulu-21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Ugeseddel-9-05-11-2025.iml" filepath="$PROJECT_DIR$/Ugeseddel-9-05-11-2025.iml" />
</modules>
</component>
</project>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Python" name="Python">
<configuration sdkName="Python 3.13" />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Python 3.13 interpreter library" level="application" />
</component>
</module>

View File

@@ -0,0 +1,53 @@
import math
def f1(n):
if n<= 1:
print(n, sep="", end="")
else:
f1(int(n/2))
print(", ", n, sep="", end="")
#f1(10)
#print()
def f2(n: int):
if n >= 100:
print(n, sep="", end="")
else:
f2(2*n)
print(", ", n, sep="", end="")
#f2(10)
#print()
def f3(n: int):
if n <= 0:
print("*", sep="", end="")
elif n % 2 == 0:
print("(", sep="", end="")
f3(n-1)
print(")", sep="", end="")
else:
print("[", sep="", end="")
f3(n-1)
print("]", sep="", end="")
#f3(2)
#print()
def process(a):
return a if len(a) <= 1 else process(a[math.floor(len(a)/2):]) + process(a[:math.floor(len(a)/2)]) # Reverser arrayet
liste = [1,2,3,4,5,6,7,8,9,10]
print(process(liste))
print()
def next_fib(a):
return a if len(a)<=1 else a.append(a[-2]+a[-1])
def main_fib():
fib_liste = [0, 1]
for i in range(50):
next_fib(fib_liste)
print(fib_liste)
main_fib()