"""Creates the escalator class"""


class Escalator:
    """
    Each escalator is an instance of the escalator class.
    Methods:
    __init__: creates a new escalator
    rate: calculates the rate people leave the escalator
    """

    def __init__(self):
        self.stand_time = None
        self.stand_space = None
        self.walk_time = None
        self.walk_space = None

    
    @property
    def rate(self):
        return (self.stand_time * self.stand_space) + self.walk_time * (self.walk_space)

"""Creates the escalator class"""


class Escalator:
    """
    Each escalator is an instance of the escalator class.
    Methods:
    __init__: creates a new escalator
    rate: calculates the rate people leave the escalator
    """

    def __init__(self):
        self.stand_time = eval(input("Enter a standing escalator transit time: "))
        #testfunction() a function that will test if this is a positive number
        self.stand_space = eval(input("Enter the number of stairs between standing people: "))
        #testfuntion()
        self.walk_time = eval(input("Enter a walking escalator transit time: "))
        #testfuntion()
        self.walk_space = eval(input("Enter the number of stairs between walking peopld: "))
        #testfuntion()

    
    @property
    def rate(self):
        return (self.stand_time * self.stand_space) + (self.walk_time * self.walk_space)

Add input statements and edit parentheses in rate
Add input statements and edit parentheses in rate

Attempted to add some input functions into the elevator constructor.

Ref #25 #23
  """Creates the escalator class"""
  
  
  class Escalator:
      """
      Each escalator is an instance of the escalator class.
      Methods:
      __init__: creates a new escalator
      rate: calculates the rate people leave the escalator
      """
  
      def __init__(self):
-         self.stand_time = None
-         self.stand_space = None
-         self.walk_time = None
-         self.walk_space = None
+         self.stand_time = eval(input("Enter a standing escalator transit time: "))
+         #testfunction() a function that will test if this is a positive number
+         self.stand_space = eval(input("Enter the number of stairs between standing people: "))
+         #testfuntion()
+         self.walk_time = eval(input("Enter a walking escalator transit time: "))
+         #testfuntion()
+         self.walk_space = eval(input("Enter the number of stairs between walking peopld: "))
+         #testfuntion()
  
      
      @property
      def rate(self):
-         return (self.stand_time * self.stand_space) + self.walk_time * (self.walk_space)
+         return (self.stand_time * self.stand_space) + (self.walk_time * self.walk_space)
  
Add input statements and edit parentheses in rate
## Code Before:
"""Creates the escalator class"""


class Escalator:
    """
    Each escalator is an instance of the escalator class.
    Methods:
    __init__: creates a new escalator
    rate: calculates the rate people leave the escalator
    """

    def __init__(self):
        self.stand_time = None
        self.stand_space = None
        self.walk_time = None
        self.walk_space = None

    
    @property
    def rate(self):
        return (self.stand_time * self.stand_space) + self.walk_time * (self.walk_space)

## Instruction:
Add input statements and edit parentheses in rate
## Code After:
"""Creates the escalator class"""


class Escalator:
    """
    Each escalator is an instance of the escalator class.
    Methods:
    __init__: creates a new escalator
    rate: calculates the rate people leave the escalator
    """

    def __init__(self):
        self.stand_time = eval(input("Enter a standing escalator transit time: "))
        #testfunction() a function that will test if this is a positive number
        self.stand_space = eval(input("Enter the number of stairs between standing people: "))
        #testfuntion()
        self.walk_time = eval(input("Enter a walking escalator transit time: "))
        #testfuntion()
        self.walk_space = eval(input("Enter the number of stairs between walking peopld: "))
        #testfuntion()

    
    @property
    def rate(self):
        return (self.stand_time * self.stand_space) + (self.walk_time * self.walk_space)
