Alle Daten.

This commit is contained in:
msnau
2026-07-19 18:56:51 +02:00
commit e367596191
8 changed files with 119 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml
+6
View File
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.9 (pythonProject)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (pythonProject)" project-jdk-type="Python SDK" />
</project>
+8
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$/.idea/pythonProject.iml" filepath="$PROJECT_DIR$/.idea/pythonProject.iml" />
</modules>
</component>
</project>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
+26
View File
@@ -0,0 +1,26 @@
produkt = input('Welches Produkt (Gummibaerchen, Lakritzstangen, Playstation) wünschen Sie?')
menge = int(input('Welche Menge wünschen Sie?'))
Gummibaerchen = float(0.05)
Lakritzstangen = float(0.30)
Playstation = float(199.00)
GBpreis = Gummibaerchen * menge
LSpreis = Lakritzstangen * menge
PSpreis = Playstation * menge
match produkt:
case 'Gummibaerchen':
print ('Netto ohne MwSt: EUR', GBpreis/1.07)
print ('MWSt: EUR', GBpreis-GBpreis/1.07)
print ('Zu bezahlen: EUR', GBpreis)
case 'Lakritzstangen':
print ('Netto ohne MwSt: EUR', LSpreis/1.07)
print ('MWSt: EUR', LSpreis-LSpreis/1.07)
print ('Zu bezahlen: EUR', LSpreis)
case 'Playstation':
print ('Netto ohne MwSt: EUR', PSpreis/1.07)
print ('MWSt: EUR', PSpreis-PSpreis/1.07)
print ('Zu bezahlen: EUR', PSpreis)
case _:
print('Falscher Artikelname!')
+53
View File
@@ -0,0 +1,53 @@
# alter = 18
# AAge = alter / 2 + 7
# print(f'Your acceptable age is {AAge}')
# alter = input ('Bitte Alter nennen')
#alter = int(alter)
#AAge = alter / 2 + 7
#if alter >= 18:
# AAge = max(18)
#print("Your acceptable age is" , AAge)
#vornamen = ['Astjan', 'Knastjan', 'Bombastjan']
#vornamen += ['Salafastjan', 'Islamastjan']
#print(vornamen[2].upper())
import random
alter = int(input ('Bitte Alter nennen'))
if alter >=22:
AAge = alter / 2 + 7
elif alter <=17:
AAge = alter / 2 + 7
elif alter <=21:
AAge = 18
if AAge ==18:
print("Your acceptable age is atleast", AAge)
elif AAge >=18:
print("Your acceptable age is", AAge)
elif AAge <=18:
print("Your acceptable age is", AAge)
vornamen = ['Astjan', 'Knastjan', 'Bombastjan']
vornamen += ['Salafastjan', 'Islamastjan']
aname = random.choice(vornamen)
if aname != 'Bombastjan':
print(aname)
elif aname == 'Bombastjan':
print(aname.upper(), '💥')