Exemplo n.º 1
0
def anagram_2d_runner():
    """
    THIS METHOD IS USED TO PRINT ANAGRAM PRIME NUMBER
    AND ALSO THE NON PRIME NUMBER USING 2-D ARRAY
    """
    logic_obj = Methods()  # creating the object of method class
    logic_obj.anagram_2d_array()  # function call
Exemplo n.º 2
0
def anagram_runner():
    """
     THIS METHOD IS USED TO PRINT PRIME ANAGRAM BETWEEN 0-1000
     IN REVERSE ORDER IN A STACK
    """
    logic_obj = Methods()  # creating the object of method class
    logic_obj.anagram_stack()  # function call
Exemplo n.º 3
0
def prime_2d_runner():
    """
    THIS METHOD IS USED TO PRINT PRIME NUMBER BETWEEN
    0-1000 USING TWO-D ARRAY
    """
    logic_obj = Methods()  # creating the objects of the method class
    logic_obj.prime_number_2d_array()
Exemplo n.º 4
0
def calendar_runner():
    """
    THIS METHOD DISPLAYS THE CALENDAR
    """

    logic_obj = Methods()  # creating object of the method class

    try:
        month = int(input('Enter month: '))  # enter the month number
    except ValueError:
        print("Enter integer only ")

    try:
        year = int(input("Enter Year: "))  # enter year
    except ValueError:
        print("Enter integer only")
    logic_obj.calendar(month, year)
Exemplo n.º 5
0
def calendar_queue_runner():
    """
    THIS METHOD ACT AS RUNNER FOR calender_queue(month, year) METHOD
    """

    logic_obj = Methods()  # creating object of the method class

    try:
        month = int(input('Enter Month:'))  # enter the month number
    except Exception as e:
        print(e)
        print("Enter integer only ")
    try:
        year = int(input('Enter year:'))  # enter the year
    except Exception as e:
        print(e)
        print("Enter integer only")

    logic_obj.calendar_queue(month, year)
Exemplo n.º 6
0
def calender_stack_runner():
    """
    THIS METHOD IS USED TO RUN THE CALENDAR
    """

    logic_obj = Methods()  # creating object of the method class

    try:
        month = int(input('Enter Month'))  # enter the month number
    except Exception as e:
        print(e)
        print("Enter integer only ")
    try:
        year = int(input('Enter Year'))  # enter the year
    except Exception as e:
        print(e)
        print("Enter integer only")

    logic_obj.calender_stack(month, year)
Exemplo n.º 7
0
def anagram_runner():
    """
    THIS METHOD WILL PRINT PRIME ANAGRAMS IN A QUEUE
    """
    logic_obj = Methods()  # creating the object of method class
    logic_obj.anagram_queue()  # function call