Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Chris Sehnert
    Chris Sehnert
    30,857 Points

    random.sample()

    Posted January 22, 2019 5:03am by Chris Sehnert
    Chris Sehnert
    30,857 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • Roja kajoka
    Roja kajoka
    701 Points

    idea please.

    Posted September 24, 2018 7:44pm by Roja kajoka
    Roja kajoka
    701 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    2 Answers

  • Mathew Yangang
    Mathew Yangang
    4,433 Points

    random.sample

    Posted August 10, 2018 5:39pm by Mathew Yangang
    Mathew Yangang
    4,433 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • igor corrales
    igor corrales
    2,474 Points

    I don't know what is wrong .....

    Posted June 27, 2018 7:16am by igor corrales
    igor corrales
    2,474 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • Ashmit Pathak
    Ashmit Pathak
    4,441 Points

    Can't understand what to do in this one plz help?

    Posted March 29, 2018 10:16am by Ashmit Pathak
    Ashmit Pathak
    4,441 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • Isis Phillips
    Isis Phillips
    17,067 Points

    Need help with this issue.

    Posted February 21, 2018 2:23am by Isis Phillips
    Isis Phillips
    17,067 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    3 Answers

  • samuel fiori
    samuel fiori
    4,497 Points

    What's the problem on task: "sample.py" ?? On my IDLE it runs perfect.

    Posted September 26, 2017 6:26pm by samuel fiori
    samuel fiori
    4,497 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    2 Answers

  • Jothum Chitewe
    Jothum Chitewe
    7,833 Points

    sample.py

    Posted August 7, 2017 2:01am by Jothum Chitewe
    Jothum Chitewe
    7,833 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    2 Answers

  • Royce Sithole
    Royce Sithole
    2,625 Points

    random.sample HELP

    Posted May 19, 2017 8:13am by Royce Sithole
    Royce Sithole
    2,625 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • Conrad Landicho
    Conrad Landicho
    3,312 Points

    random.sample()

    Posted February 19, 2017 3:26am by Conrad Landicho
    Conrad Landicho
    3,312 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    3 Answers

  • Alex Diaz
    Alex Diaz
    4,930 Points

    Not sure on how to use random sample

    Posted February 5, 2017 3:56am by Alex Diaz
    Alex Diaz
    4,930 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

  • Numair Khan
    Numair Khan
    3,210 Points

    Help == confusing

    Posted January 25, 2017 12:15am by Numair Khan
    Numair Khan
    3,210 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    2 Answers

  • Alejandro Loja
    Alejandro Loja
    6,541 Points

    I have been stuck on this problem for 30 mins, what am I doing wrong?

    Posted January 18, 2017 6:01am by Alejandro Loja
    Alejandro Loja
    6,541 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Dungeon Game
    • random.sample

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord