• slacktoid@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    6 days ago

    Yes to see the people who call themselves coders but can’t write hello world in Python without asking Claude

    • AmyAye@nord.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      message1 = “Hello” message2 = “World” message3 = “!”

      combined = f"{message1} {message2}{message3}"

      print(combined)

      • sobchak@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        6 days ago
        import anthropic
        
        client = anthropic.Anthropic()
        
        message = client.messages.create(
            model='claude-fable-5',
            max_tokens=128000,
            messages=[
                {'role': 'user', 'content': 'say "Hello World"'}
            ],
        )
        
        print(message.content[0].text)