commit message from python script
This commit is contained in:
32
übung/rechner/main.py
Normal file
32
übung/rechner/main.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
class my_rechner:
|
||||
def __init__(self, zahl=0):
|
||||
self.zahl = zahl
|
||||
|
||||
def check_input(self):
|
||||
pass
|
||||
|
||||
def rechnen(self):
|
||||
pass
|
||||
|
||||
def check_rechnen(self):
|
||||
self.zahl = 4
|
||||
|
||||
def main_run(self):
|
||||
print(self.zahl)
|
||||
my_rechner.check_rechnen(self)
|
||||
print(self.zahl)
|
||||
|
||||
while True:
|
||||
check_input = input("Noch eine Frage ? :")
|
||||
if len(check_input) == 1 and check_input == "n":
|
||||
break
|
||||
else:
|
||||
print("false")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("Running Main", "." *3)
|
||||
rechnen_now = my_rechner()
|
||||
rechnen_now.main_run()
|
||||
Reference in New Issue
Block a user