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.

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

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

  • 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
  • Asher Orr
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Asher Orr
    Python Development Techdegree Graduate 9,411 Points

    How do I correctly reference a variable within a method (OOP)?

    Posted July 25, 2022 9:56pm by Asher Orr
    .a{fill-rule:evenodd;}techdegree seal-36
    Asher Orr
    Python Development Techdegree Graduate 9,411 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • billytam
    billytam
    4,203 Points

    Keep getting: You got 1 out of 10 right.

    Posted June 22, 2022 10:17pm by billytam
    billytam
    4,203 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Tucker Fischer
    Tucker Fischer
    10,517 Points

    Summary function is not printing

    Posted January 13, 2021 2:27am by Tucker Fischer
    Tucker Fischer
    10,517 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    2 Answers

  • tariqasghar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    tariqasghar
    UX Design Techdegree Graduate 30,519 Points

    Point of "question_start" and question_end" times in "ask" method.

    Posted May 12, 2020 3:14pm by tariqasghar
    .a{fill-rule:evenodd;}techdegree seal-36
    tariqasghar
    UX Design Techdegree Graduate 30,519 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Patrick Lannan
    Patrick Lannan
    4,792 Points

    Understanding question_start/end

    Posted March 29, 2020 6:01pm by Patrick Lannan
    Patrick Lannan
    4,792 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    2 Answers

  • Haifa Bassam
    Haifa Bassam
    10,333 Points

    TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'builtin_function_or_method'

    Posted February 29, 2020 12:38pm by Haifa Bassam
    Haifa Bassam
    10,333 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Kabir Gandhiok
    Kabir Gandhiok
    12,553 Points

    In the method ask(self, question), how can question reference text, it isnt an instance?

    Posted April 25, 2018 2:25pm by Kabir Gandhiok
    Kabir Gandhiok
    12,553 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • annecalija
    annecalija
    9,031 Points

    Why is it that reuse of varible in re-instantiation of a class does not reset its attributes? what's wrong with my code?

    Posted September 28, 2017 3:15pm by annecalija
    annecalija
    9,031 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Frank Campos
    Frank Campos
    4,175 Points

    I need help !!!!

    Posted July 22, 2017 3:10am by Frank Campos
    Frank Campos
    4,175 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    5 Answers

  • sonny unverferth
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    sonny unverferth
    Python Web Development Techdegree Student 2,889 Points

    datetime in quiz.py

    Posted May 24, 2017 5:56pm by sonny unverferth
    .a{fill-rule:evenodd;}techdegree
    sonny unverferth
    Python Web Development Techdegree Student 2,889 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Rolando Aguilera
    Rolando Aguilera
    4,662 Points

    Self in OOP

    Posted April 19, 2017 5:48pm by Rolando Aguilera
    Rolando Aguilera
    4,662 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Evan Waterfield
    Evan Waterfield
    3,240 Points

    Keep getting a NoneType error for if answer[0]

    Posted September 29, 2016 10:08pm by Evan Waterfield
    Evan Waterfield
    3,240 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Alex Tirrell
    Alex Tirrell
    3,359 Points

    count() is finding one too many correct answers

    Posted August 24, 2016 7:08pm by Alex Tirrell
    Alex Tirrell
    3,359 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Brian Anstett
    Brian Anstett
    5,831 Points

    How can Summary() access start_time and end_time?

    Posted August 15, 2016 3:52pm by Brian Anstett
    Brian Anstett
    5,831 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Ben Kooijman
    Ben Kooijman
    3,304 Points

    "self" on start_time but not on quiz_start?

    Posted July 2, 2016 12:57pm by Ben Kooijman
    Ben Kooijman
    3,304 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Daniel Petrov
    Daniel Petrov
    3,495 Points

    Question not defined

    Posted June 14, 2016 4:54pm by Daniel Petrov
    Daniel Petrov
    3,495 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • gaetano amoroso
    gaetano amoroso
    2,993 Points

    I have a problem with quiz.py second part, please someone help me

    Posted April 14, 2016 11:36am by gaetano amoroso
    gaetano amoroso
    2,993 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    2 Answers

  • Sim L.
    Sim L.
    3,106 Points

    Quiz: always prints out 0/10 even when answers are correct [Solved]

    Posted January 14, 2016 8:27pm by Sim L.
    Sim L.
    3,106 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    4 Answers

  • Graham Mackenzie
    Graham Mackenzie
    2,747 Points

    Why use else: with for loop?

    Posted November 11, 2015 9:28pm by Graham Mackenzie
    Graham Mackenzie
    2,747 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    5 Answers

  • Alfred Markut Jr
    PLUS
    Alfred Markut Jr
    Courses Plus Student 3,791 Points

    Don't understand random.choice(question_types)(num1, num2)

    Posted July 2, 2015 10:31pm by Alfred Markut Jr
    Alfred Markut Jr
    Courses Plus Student 3,791 Points
    • Python
    • Dates and Times in Python
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    1 Answer

  • Julie Pham
    Julie Pham
    12,290 Points

    Why we need log the start_time and end_time in ask method?

    Posted July 1, 2015 7:55pm by Julie Pham
    Julie Pham
    12,290 Points
    • Python
    • Dates and Times in Python (2014)
    • Let's Build a Timed Quiz App
    • Taking The Quiz

    3 Answers

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