Travel()

Programming Language: Python 3 (As of Jan 2022)

Description


Calling Travel() from the TravelAPI file will initialize the def __init__(self, location): . This will allow you to access and use any other function in the class Travel

Parameters


location

  Value of this must be a string of a correctly spelled location.

  location string needs to be airport code, city, country, airport name

Calling Example


        
            atlanta = Travel("atlanta")
        
        
    

Class Code


        
            def __init__(self, location):
              self.location = location