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
  • Artithaya Bachner
    Artithaya Bachner
    1,719 Points

    Why is "Python" > "Chocolate", since Python is after Chocolate, shouldn't Chocolate be greater than Python?

    Posted October 1, 2024 1:48pm by Artithaya Bachner
    Artithaya Bachner
    1,719 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • arda basara
    arda basara
    585 Points

    why "python" > "chocolate" is True Isn't it supposed to be False

    Posted February 19, 2023 10:38pm by arda basara
    arda basara
    585 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    2 Answers

  • Brahian Maidana
    Brahian Maidana
    199 Points

    How is python greater than chocolate? what am I looking for

    Posted September 29, 2021 3:59am by Brahian Maidana
    Brahian Maidana
    199 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • khabe fox
    khabe fox
    1,374 Points

    its alpahabetical forwards if < backwards if >?

    Posted September 11, 2020 11:44pm by khabe fox
    khabe fox
    1,374 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • Stephanie Mansoor
    Stephanie Mansoor
    270 Points

    I don't understand why "python" > "chocolate" I thought that would be false because c comes first?

    Posted May 2, 2020 9:42pm by Stephanie Mansoor
    Stephanie Mansoor
    270 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • Robert Rydlewski
    Robert Rydlewski
    3,828 Points

    Can someone explain me logic behind it ??

    Posted February 22, 2020 9:34pm by Robert Rydlewski
    Robert Rydlewski
    3,828 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    2 Answers

  • Dejuan Castro
    Dejuan Castro
    198 Points

    P > C ? Really.

    Posted February 2, 2020 12:28am by Dejuan Castro
    Dejuan Castro
    198 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • Deonte Meriwether
    Deonte Meriwether
    1,513 Points

    What would be printed out in the shell after this statement is evaluated?

    Posted July 16, 2019 2:59am by Deonte Meriwether
    Deonte Meriwether
    1,513 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • Routine Poutine
    Routine Poutine
    26,050 Points

    How is "python" > "chocolate" alphabetically? I am thinking "p" comes after "c," so I do not understand this.

    Posted May 10, 2019 7:28pm by Routine Poutine
    Routine Poutine
    26,050 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    2 Answers

  • cesarmatta
    cesarmatta
    11,592 Points

    Why is this not if age <= 13 ?

    Posted February 17, 2019 8:03am by cesarmatta
    cesarmatta
    11,592 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    2 Answers

  • Ethan Martin
    PLUS
    Ethan Martin
    Courses Plus Student 1,883 Points

    answer = 3.14 <= 3.14 -> Why is this true?

    Posted October 18, 2018 4:59pm by Ethan Martin
    Ethan Martin
    Courses Plus Student 1,883 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    1 Answer

  • Lorrian Landicho
    Lorrian Landicho
    278 Points

    Mini quiz after Pyhton Basic. I closed the window so I can review first; but then again, I can't seem find that anymore.

    Posted August 5, 2018 9:38pm by Lorrian Landicho
    Lorrian Landicho
    278 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    2 Answers

  • Lerena Holloway
    Lerena Holloway
    9,855 Points

    >>> "python" > "chocolate" this would print out as True, but I don't understand how alphabetically works

    Posted June 29, 2018 2:10am by Lerena Holloway
    Lerena Holloway
    9,855 Points
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values

    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