Generation

generate functionWed, 07 Dec 2022

how can write a program to get current location when user ask for current location

def current_location(): try: print(requests.get('http://ipinfo.io/').text) except: print('Fail to get current location') current_location()

Want to kickstart your project?Use the new AI Studio to create your code