🤑 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
    • Showing results for:
    • Python
    • Python Basics
    • Types and Branching
    • Comparing values
    • Close
  • Artithaya Bachner
    Artithaya Bachner
    1,456 Points

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

    Posted on Oct 1, 2024 by Artithaya Bachner
    Artithaya Bachner
    1,456 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 on Feb 19, 2023 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 on Sep 29, 2021 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 on Sep 11, 2020 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 on May 2, 2020 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 on Feb 22, 2020 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 on Feb 2, 2020 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 on Jul 16, 2019 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 on May 10, 2019 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 on Feb 17, 2019 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 on Oct 18, 2018 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 on Aug 5, 2018 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 on Jun 29, 2018 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.