<p>Hello earf</p>
# This is a Python example
def greet(name):
    return f"Hello, {name}!"

print(greet("World"))
JavaScript
async function fetchFiveUrls(urls) {
  if (urls.length !== 5) {
    throw new Error("You must provide exactly 5 URLs.");
  }

  try {
    // Fire all requests at once
    const responses = await Promise.all(urls.map(url => fetch(url)));

    // Parse all responses as JSON (or text, if needed)
    const data = await Promise.all(responses.map(res => {
      if (!res.ok) {
        throw new Error(`Request failed: ${res.status}`);
      }
      return res.json();
    }));

    console.log("All data fetched successfully:", data);
    return data;
  } catch (err) {
    console.error("Error fetching data:", err);
    throw err;
  }
}

// Example usage
fetchFiveUrls([
  "https://jsonplaceholder.typicode.com/todos/1",
  "https://jsonplaceholder.typicode.com/todos/2",
  "https://jsonplaceholder.typicode.com/todos/3",
  "https://jsonplaceholder.typicode.com/todos/4",
  "https://jsonplaceholder.typicode.com/todos/5"
]);