As mention bye @mlieqo getLocation() shall not have argument in,they get create in function.
PEP-8 and f-string.
PEP-8 and f-string.
def location(): x = input("Specify horizontal position: ") y = input("Specify vertical position: ") z = input("Specify altitude: ") return x, y, z def quick_test(): latitude,longitude,altitude = location() print(f'You are located at {latitude} degrees latitude ' f'{longitude} degrees longitude and {altitude} feet above sea level.') quick_test()
Output:You are located at 100 degrees latitude 200 degrees longitude and 300 feet above sea level.