🤑 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
    • 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
  • Artithaya Bachner
    Artithaya Bachner
    952 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
    952 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,074 Points

    its alpahabetical forwards if < backwards if >?

    Posted September 11, 2020 11:44pm by khabe fox
    khabe fox
    1,074 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.

    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.