If you're having. Request help from anyone


#1


I think I made a mistake but I don't know where or what it is.:confused:




Oops, try again.
Make sure your if statements evaluate to True!




def using_control_once():
    if 1 < 2:
        return True

def using_control_again():
    if 1 < 2:
        return False

print using_control_once()
print using_control_again()


#2

Hi, @luftangrieferii ,

From the instructions ...

If you do it successfully, then both "Success #1" and "Success #2" are printed.

You changed the return statements, so the above messages are not what gets displayed


#3

Do you mean that i shouldn't do anything to the return statements :confused:


#4

You will need to restore them to their original states.

The first one was ...

return "Success #1"

The second one was ...

return "Success #2"

#5

I did that but it didn't change a thing :disappointed:


#6

Could you post the current version of your code?


#7

This is it


def using_control_once():
if 1 > 2:
return "Succes #1"

def using_control_again():
if 1 != 2:
return "Success #2"

print using_control_once()
print using_control_again()


#8

This the error message I'm getting





Oops, try again.
Make sure your if statements evaluate to True!




#9

You changed the condition here ...

if 1 > 2:

It is no longer True.

Check the spelling here ...

return "Succes #1"

#10

Still giving me the error message.





Oops, try again.
Make sure your if statements evaluate to True!


#11

and I changed the spelling to "Success #1"


#12

Please post the entire code again.


#13

def using_control_once():
if 1 > 2:
return "Success #1"

def using_control_again():
if 1 != 2:
return "Success #2"

print using_control_once()
print using_control_again()

Do you want the instructions as well?


#14

The problem is here ...

if 1 > 2:

1 > 2 evaluates to False. Change it to something that evaluates to True.


#15

THANK YOU VERY MUCH, I DON'T KNOW WHAT I WOULD HAVE DONE IF NOT FOR YOUR HELP !!! :smile: :relieved:


#16

No problem; glad to help. :slight_smile:


#17