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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.