Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-2.1· AnthropicHugging Face Arena Human Preference 55K

please write the code to make a cappuccino

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Perplexitypplx-70b-online’s answer.
  1. User

    please write the code to make a cappuccino

  2. Claude Assistant

    Here is Python code to make a cappuccino:

    # Import ingredients
    import espresso
    import steamed_milk
    import foamed_milk
    
    # Prepare the espresso
    espresso_shot = espresso.pull_shot()
    
    # Steam the milk
    milk = steamed_milk.steam()
    
    # Foam some of the milk
    foam = foamed_milk.foam(milk)
    
    # Assemble the ingredients into a cup
    cup = []
    cup.append(espresso_shot)
    cup.append(milk) 
    cup.append(foam)
    
    # Top with cinnamon or chocolate if desired
    cup.top(cinnamon)
    
    # Serve the cappuccino
    print("Here is your delicious cappuccino!")
    serve(cup)
    

    The key steps are:

    1. Pull an espresso shot
    2. Steam milk
    3. Foam some of the steamed milk
    4. Layer the espresso, steamed milk, and foamed milk into a cup
    5. Add any toppings
    6. Serve!

    Let me know if you need any clarification or have additional questions!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.