import requestslatitudeint = input("Enter latitude: ")longitudeint = input("Enter longitude: ")yearint = input("Enter year: ")monthint = input("Enter month(in numbers): ")latitude = int(latitudeint)longitude = int(longitudeint)year = int(yearint)month = int(monthint)response = requests.get(f"http://api.aladhan.com/v1/calendar/{year}/{month}?latitude={latitude}&longitude={longitude}&method=2").json()Fajr_time = response['data'][0]['timings']['Fajr']#print(response)response_json = response.json()print(Fajr_time)This program is supposed to ask you your location and print out the prayer times, but it's not working.
I changed the year, month, longatude, and latitude from string to integer, but it always shows the same error:
month = int(monthz)ValueError: invalid literal for int() with base 10: '\x1bOS4'