Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6360807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:41:44+00:00 2026-05-24T23:41:44+00:00

Checking Scalene Triangle ( I am learning from http://www.pyschools.com ) I do not know

  • 0

Checking Scalene Triangle ( I am learning from http://www.pyschools.com)

I do not know what I am wrong ,Because I could not pass this test.

Write a function isScalene(x, y, z) that accepts the 3 sides of a triangle as inputs. The function should return True if it is a scalene triangle. A scalene triangle has no equal sides.

Examples

>>> isScalene(2, 4, 3)
True
>>> isScalene(3, 3, 3)
False
>>> isScalene(0, 2, 3)
False
>>> isScalene(2, 2, 3)
False

My function define like this :

def isScalene(x, y, z): 
    if(x > 0 and y >0 and z> 0):
        if(x!=y!=z):
            return True
        else:
            return False
    else:
        return False

Could anyone give me a tip?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:41:45+00:00Added an answer on May 24, 2026 at 11:41 pm

    Try being more expressive, I suspect your x!=y!=z is the problem.

    if ( ( x != y ) and ( x != z ) and ( y !=z ) )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm checking whether internet is available or not URL url = new URL(http://www.google.co.in/); final
Checking out the sample code from http://lukesampson.com/post/471548689/entering-and-exiting-https-with-asp-net-mvc written for ASP.NET MVC2, I noticed they
Referer checking failed - http://localhost:8000/admin/ does not match https://localhost:8000/ . I'm getting Forbidden when
checking this sample. http://html5demos.com/drag i was wonder how to get when You drop a
By checking my error logs, I found that i have a link to http://site.com/javascript:;;
Checking out the following modules for connecting to mysql db: https://github.com/sidorares/nodejs-mysql-native http://github.com/felixge/node-mysql http://github.com/Sannis/node-mysql-libmysqlclient Do
Checking few RDBMS I find that things like SELECT COUNT (a), SUM (b) FROM
After checking out code for the first time from a repository into Eclipse using
When checking an object's identity, I am getting assertion errors because the object creation
Checking the simple code var http = require('http'); var server = http.createServer(function(req, res){ console.log(Got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.