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

New No-Code Track! 🚀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
    • 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
  • 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
  • Michael Jones
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Jones
    Python Development Techdegree Graduate 38,554 Points

    How does the program know that 'q' is for quit?

    Posted September 10, 2021 3:21pm by Michael Jones
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Jones
    Python Development Techdegree Graduate 38,554 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Safae Merigh
    Safae Merigh
    9,827 Points

    Menu video

    Posted December 28, 2020 3:00am by Safae Merigh
    Safae Merigh
    9,827 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • jayda hendrickson
    jayda hendrickson
    3,413 Points

    What exactly is the 'menu'?

    Posted November 29, 2020 11:28pm by jayda hendrickson
    jayda hendrickson
    3,413 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Pete Webb
    Pete Webb
    8,531 Points

    I don't understand the relationship between the menu OrderDict tuple, choice assignment, and the if choice in menu bloc

    Posted June 19, 2020 2:11pm by Pete Webb
    Pete Webb
    8,531 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    2 Answers

  • avereyku
    avereyku
    4,021 Points

    Permission Denied

    Posted September 20, 2019 4:09pm by avereyku
    avereyku
    4,021 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    2 Answers

  • Dara Roberts
    PLUS
    Dara Roberts
    Courses Plus Student 7,770 Points

    Name error persisting after moving OrderedDict to the bottom of file

    Posted December 6, 2018 6:15pm by Dara Roberts
    Dara Roberts
    Courses Plus Student 7,770 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    3 Answers

  • Juris Jaundzeikars
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Juris Jaundzeikars
    Python Web Development Techdegree Student 671 Points

    Shebang doesn't work on Windows 10, pls help!

    Posted November 28, 2018 1:33am by Juris Jaundzeikars
    .a{fill-rule:evenodd;}techdegree
    Juris Jaundzeikars
    Python Web Development Techdegree Student 671 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Enzie Riddle
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Enzie Riddle
    Front End Web Development Techdegree Graduate 19,278 Points

    Enter 'q' to quit

    Posted September 8, 2018 7:11am by Enzie Riddle
    .a{fill-rule:evenodd;}techdegree seal-36
    Enzie Riddle
    Front End Web Development Techdegree Graduate 19,278 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Kafe Hezam
    Kafe Hezam
    11,070 Points

    Kenneth had the menu at the top and it didn't run. Why does it matter when he moved it to the bottom? :)

    Posted July 31, 2018 8:00pm by Kafe Hezam
    Kafe Hezam
    11,070 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Ashley Keeling
    Ashley Keeling
    11,476 Points

    what is a doc string ?

    Posted February 21, 2018 4:01pm by Ashley Keeling
    Ashley Keeling
    11,476 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Ashley Keeling
    Ashley Keeling
    11,476 Points

    the quit part of the function isn't working

    Posted February 21, 2018 3:51pm by Ashley Keeling
    Ashley Keeling
    11,476 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Alexander Bilton
    Alexander Bilton
    1,982 Points

    "No such file or directory"

    Posted April 17, 2017 7:03pm by Alexander Bilton
    Alexander Bilton
    1,982 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Jesse Kroon
    Jesse Kroon
    8,275 Points

    No such file or directory! What am I doing wrong? diary.py

    Posted April 6, 2017 3:45pm by Jesse Kroon
    Jesse Kroon
    8,275 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    5 Answers

  • David Ton-Lai
    David Ton-Lai
    3,268 Points

    Not sure about "menu[choice]()"

    Posted March 9, 2017 10:21am by David Ton-Lai
    David Ton-Lai
    3,268 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    2 Answers

  • Gilang Ilhami
    Gilang Ilhami
    12,045 Points

    Unexpected error in creating diary.py

    Posted January 6, 2017 11:16am by Gilang Ilhami
    Gilang Ilhami
    12,045 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    0 Answers

  • Julien riera
    Julien riera
    14,665 Points

    Quotes and choice variable

    Posted September 24, 2016 4:53pm by Julien riera
    Julien riera
    14,665 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    3 Answers

  • Lucas Andrews
    Lucas Andrews
    4,919 Points

    NameError: name 'add_entry' is not defined

    Posted September 9, 2016 11:00am by Lucas Andrews
    Lucas Andrews
    4,919 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Daniel Petrov
    Daniel Petrov
    3,495 Points

    Few questions here

    Posted July 5, 2016 11:49pm by Daniel Petrov
    Daniel Petrov
    3,495 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Quotation Problem

    Posted March 31, 2016 4:45pm by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    ./diary.py

    Posted March 31, 2016 4:35pm by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    7 Answers

  • Colby Work
    Colby Work
    20,422 Points

    Why is OrderedDict written like a list?

    Posted January 25, 2016 4:58am by Colby Work
    Colby Work
    20,422 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Nagabhushan Baddi
    Nagabhushan Baddi
    3,309 Points

    The Diary application shows Indentation error.

    Posted May 4, 2015 5:10pm by Nagabhushan Baddi
    Nagabhushan Baddi
    3,309 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    1 Answer

  • Jason Brown
    Jason Brown
    6,878 Points

    How did having menu defined at the top break the code? Why did the program work when menu was placed at the bottom?

    Posted March 19, 2015 5:03pm by Jason Brown
    Jason Brown
    6,878 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    2 Answers

  • Paul Bentham
    Paul Bentham
    24,090 Points

    Name_Error on Switching it Up? 'a' is not defined... using terminal on Ubuntu.

    Posted January 21, 2015 9:18pm by Paul Bentham
    Paul Bentham
    24,090 Points
    • Python
    • Using Databases in Python
    • Our Diary App
    • Switching It Up

    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.