some C# cause why not. C# guy might like this? idk. some python too. mostly simulations. WindowsAPI C# is good i guess

This commit is contained in:
2025-10-21 07:44:55 +02:00
parent d0eaabdd87
commit cb1b91ba0f
23 changed files with 3988 additions and 1 deletions

27
PLF/üben1.py Normal file
View File

@@ -0,0 +1,27 @@
land=["Argentinien","Bolivien", "Brasilien","Chile","Ecuador","Guyana","Kolumbien","Paraguay","Peru","Surimane"]
hdi=[0.83,0.66,0.76,0.83,0.73,0.64,0.72,0.68,0.73,0.71]
# Variables
max_index = hdi.index(max(hdi))
min_index = hdi.index(min(hdi))
max_value = max(hdi)
min_value = min(hdi)
land_max = land[max_index]
land_min = land[min_index]
print(f"""
HDI - Auswertung
{"-"*20}
Max:
Index: {max_index} => {max_value},
{land_max}
{"-"*20}
Min:
Index: {min_index} => {min_value},
{land_min}
{"-"*20}
mittelwert:
{sum(hdi) / len(hdi)}
""")