New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <module type="PYTHON_MODULE" version="4"> |
| | | <component name="NewModuleRootManager"> |
| | | <content url="file://$MODULE_DIR$" /> |
| | | <orderEntry type="inheritedJdk" /> |
| | | <orderEntry type="sourceFolder" forTests="false" /> |
| | | </component> |
| | | </module> |
New file |
| | |
| | | # Default ignored files |
| | | /shelf/ |
| | | /workspace.xml |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <module type="PYTHON_MODULE" version="4"> |
| | | <component name="NewModuleRootManager"> |
| | | <content url="file://$MODULE_DIR$" /> |
| | | <orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" /> |
| | | <orderEntry type="sourceFolder" forTests="false" /> |
| | | </component> |
| | | </module> |
New file |
| | |
| | | <component name="InspectionProjectProfileManager"> |
| | | <profile version="1.0"> |
| | | <option name="myName" value="Project Default" /> |
| | | <inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true"> |
| | | <option name="ourVersions"> |
| | | <value> |
| | | <list size="1"> |
| | | <item index="0" class="java.lang.String" itemvalue="3.13" /> |
| | | </list> |
| | | </value> |
| | | </option> |
| | | </inspection_tool> |
| | | </profile> |
| | | </component> |
New file |
| | |
| | | <component name="InspectionProjectProfileManager"> |
| | | <settings> |
| | | <option name="USE_PROJECT_PROFILE" value="false" /> |
| | | <version value="1.0" /> |
| | | </settings> |
| | | </component> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="Black"> |
| | | <option name="sdkName" value="Python 3.13" /> |
| | | </component> |
| | | <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13" project-jdk-type="Python SDK" /> |
| | | </project> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="ProjectModuleManager"> |
| | | <modules> |
| | | <module fileurl="file://$PROJECT_DIR$/.idea/03-funktion.iml" filepath="$PROJECT_DIR$/.idea/03-funktion.iml" /> |
| | | </modules> |
| | | </component> |
| | | </project> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="$PROJECT_DIR$/.." vcs="Git" /> |
| | | </component> |
| | | </project> |
New file |
| | |
| | | # Funktionen |
| | | |
| | | # Tupel |
| | | |
| | | # Liste |
| | | |
New file |
| | |
| | | |
| | | eingabe_ok = False |
| | | |
| | | while not eingabe_ok: |
| | | try: |
| | | jahr_input = input("Geben Sie die Jahresnummer ein! ") |
| | | x = int(jahr_input) |
| | | eingabe_ok = True |
| | | except: |
| | | print("Eingabe ist keine Zahl") |
| | | |
| | | |
| | | # calc_oster_sunday |
| | | # argument : Jahresnummer |
| | | # rückgabe: tage im märz |
| | | def calc_oster_sunday(year: int) -> (int,int): |
| | | a = year % 19 |
| | | k = year // 100 |
| | | m = 15 + (3*k + 3) // 4 - (8*k + 13) // 25 |
| | | d = (19*a + m) % 30 |
| | | s = 2 - (3*k + 3) // 4 |
| | | r = (d + a // 11) // 29 |
| | | og = 21 + d - r |
| | | sz = 7 - (year + year//4 + s) % 7 |
| | | oe = 7 - (og - sz) % 7 |
| | | os = (og + oe) |
| | | if os <= 31: |
| | | tag = os |
| | | monat = 3 |
| | | else: |
| | | tag = os-31 |
| | | monat = 4 |
| | | return (tag,monat) |
| | | |
| | | tag,monat = calc_oster_sunday(x) |
| | | |
| | | months = (None, "Jan", "Feb", "März", "April") |
| | | |
| | | print(f"Der Ostersonntag im {x} ist am {tag}ten {months[monat]}.") |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
New file |
| | |
| | | <?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="jdk" jdkName="Python 3.10 (canvas-bezier)" jdkType="Python SDK" /> |
| | | <orderEntry type="sourceFolder" forTests="false" /> |
| | | </component> |
| | | </module> |