Jump to content

Can Someone Help Me With This?

xinfernus
Go to solution Solved by SSL,

   Got rid of the recursion error, now this

 

That is a gigantic hint, I'm not sure that I can explain it without giving it away. The function needs to return true, right, so where in your code is that happening?

 

   Can I have some help with this guys?  I've been stuck here for awhile now. Screenshot

if 1 == 1:    print "Thanks in advance"

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

might need more info on what youre trying to do...

 

you cant have something thats false and not false at the same time

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

Could you possibly get a 2nd screenshot of the directions and such?

Specs: CPU - Intel i7 8700K @ 5GHz | GPU - Gigabyte GTX 970 G1 Gaming | Motherboard - ASUS Strix Z370-G WIFI AC | RAM - XPG Gammix DDR4-3000MHz 32GB (2x16GB) | Main Drive - Samsung 850 Evo 500GB M.2 | Other Drives - 7TB/3 Drives | CPU Cooler - Corsair H100i Pro | Case - Fractal Design Define C Mini TG | Power Supply - EVGA G3 850W

Link to comment
Share on other sites

Link to post
Share on other sites

Infinite recursion. You're calling the function in those two conditions, the conditions are always evaluated, recursion goes on forever. To avoid that, you need a base case/ending condition. I can't propose one without knowing what the hell you're trying to accomplish.

Link to comment
Share on other sites

Link to post
Share on other sites

 

 

 

Could you possibly get a 2nd screenshot of the directions and such?

 

 

An always true statement? 

 

 

 

 

   Sorry guys, it was late.  Here is what you want.

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

Link to comment
Share on other sites

Link to post
Share on other sites

Now I'm even more confused.

 

   That makes the two of us.

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

   That makes the two of us.

 

So what do you need help with, exactly?

 

Link to comment
Share on other sites

Link to post
Share on other sites

So what do you need help with, exactly?

 

   

   The error at the bottom won't let me won't let me advance but (I think) I have met all the conditions of the challenge.  I was hoping you guys would know how to resolve the error.

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

The error at the bottom won't let me won't let me advance but (I think) I have met all the conditions of the challenge. I was hoping you guys would know how to resolve the error.

I already explained:

 

Infinite recursion. You're calling the function in those two conditions, the conditions are always evaluated, recursion goes on forever. To avoid that, you need a base case/ending condition. I can't propose one without knowing what the hell you're trying to accomplish.

 

Without clearer details on what the point of the exercise is, that's the best I can do.

Link to comment
Share on other sites

Link to post
Share on other sites

 

I already explained:

 

 

Without clearer details on what the point of the exercise is, that's the best I can do.

 

 

   This lesson on Code Academy is to test what I learned in the unit about "Conditionals and Control Flow", specifically Comparators, Boolean operators, and Conditional statements.  The goal of the exercise is to write an "if" (if, elseif, else) statement that includes at least one boolean operator, one comparator, and the function (the_flying_circus) must return true when evaluated.

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

   This lesson on Code Academy is to test what I learned in the unit about "Conditionals and Control Flow", specifically Comparators, Boolean operators, and Conditional statements.  The goal of the exercise is to write an "if" (if, elseif, else) statement that includes at least one boolean operator, one comparator, and the function (the_flying_circus) must return true when evaluated.

 

So why the recursion? Just get rid of that and problem solved.

 

Link to comment
Share on other sites

Link to post
Share on other sites

So why the recursion? Just get rid of that and problem solved.

 

 

   Got rid of the recursion error, now this

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

   Got rid of the recursion error, now this

 

That is a gigantic hint, I'm not sure that I can explain it without giving it away. The function needs to return true, right, so where in your code is that happening?

 

Link to comment
Share on other sites

Link to post
Share on other sites

That is a gigantic hint, I'm not sure that I can explain it without giving it away. The function needs to return true, right, so where in your code is that happening?

 

 

   I did it!!

This is Comic Sans.                          

This is Comic Sans.                                If you can't tell the difference, you may need to see a specialist.

This is Comic Sans.          

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×