refs = [
{"author": "International Energy Agency", "title": "Energy and AI",
"publisher": "IEA", "year": 2025, "url": "https://www.iea.org/reports/energy-and-ai"},
{"author": "A. Student", "title": "Notes on post-quantum cryptography",
"publisher": "School research blog", "year": 2026, "url": "https://example.org/pqc"},
]
def ieee(n, r, accessed="Oct. 17, 2026"):
return (f'[{n}] {r["author"]}, "{r["title"]}," {r["publisher"]}, {r["year"]}. '
f'Accessed: {accessed}. [Online]. Available: {r["url"]}')
for i, r in enumerate(refs, start=1):
print(ieee(i, r))
A simplified IEEE-style formatter for web sources. enumerate(refs, start=1) numbers the references from 1. (example.org is a reserved example address.)