Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Zadanie_1
- import Zadanie_2
- def get_instructions():
- while True:
- try:
- return int(input("wciśnij 1 - równanie kwadratowe, 2 - układ równań lub dowolny inny klawisz, aby zamknąć program: "))
- except ValueError:
- print("podana wartość nie jest liczbą!!!")
- def choose_file():
- x = get_instructions()
- if x == 1:
- Zadanie_1.amount_of_elements()
- elif x == 2:
- Zadanie_2.count_determinants()
- else:
- print("Zakończenie programu")
- return
- def main():
- choose_file()
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement