Skip to content

Instantly share code, notes, and snippets.

View berkakkaya's full-sized avatar
💭
I may be slow to respond

Berk Akkaya berkakkaya

💭
I may be slow to respond
View GitHub Profile
@berkakkaya
berkakkaya / input_controller.py
Last active April 19, 2020 14:36
Input Controller - Script that takes user inputs and checks whether the answer is of the desired type (or checks if given path exists, you can customize it :) )
from os.path import exists
class InputController(object):
"""Controller class for controlling user inputs
Methods
-------
get_bool(prompt : str) -> bool
Checks if the answer is yes(y) or no(n).