'''
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
'''
url = '/energy?%20timeUnit=DAY&format=json&startDate=2023-06-01&endDate=2023-06-30&api_key/'
print(url)
fromDate = '2023-12-01'
toDate = '2023-12-31'
url = f'/energy?%20timeUnit=DAY&format=json&startDate={fromDate}&endDate={toDate}&api_key/'
print(url)
url = f'/energy?%20timeUnit=DAY&format=json&startDate={fromDate}&endDate={toDate}&api_key/'
fromDate = '2023-12-01'
toDate = '2023-12-31'
print(url.format(fromDate, toDate))