FAQ: Learn Python - Conditionals & Control Flow - This and That (or This, But Not That!)

This community-built FAQ covers the “This and That (or This, But Not That!)” exercise in Codecademy’s lessons on Python.

FAQs for the Codecademy Python exercise This and That (or This, But Not That!):

Join the Discussion. We Want to Hear From You!

Have a new question or can answer someone else’s? Reply (reply) to an existing thread!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources about Python in general? Go here!

Want to take the conversation in a totally different direction? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account, billing, Pro, or Pro Intensive? Reach out to our support team!

None of the above? Find out where to ask other questions here!

1 Like

Other FAQs

The following are links to additional questions that our community has asked about this exercise:

  • This list will contain other frequently asked questions that aren’t quite as popular as the ones above.
  • Currently there have not been enough questions asked and answered about this exercise to populate this FAQ section.
  • This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!

Not seeing your question? It may still have been asked before – try (search) in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post (reply).

2 posts were split to a new topic: Why is the following bool “True”?

When doing this exercise or the similar ones before it, I seem to be able to move on no matter what I actually set the bool variables to, so how do I know I’m doing this exercise correctly?

Once you get a checkmark for the exercise and the Next button is lit, copy the expressions to the editor inside a print statement then Run the code.

bool_one = ____
print (not True)

If they all match, then you’ve got the concept hands down. If any don’t, then report the lesson as an SCT bug.

Obviously an older course (and an old thread), but being a free course it’s actually more visible to folks wanting to see what CodeAcademy’s Python course material is like before taking the plunge and spending money.

So as a newbie, if I may be so bold as to give some feedback -

  1. When entering this section from the date/time panel, the first control flow panel that appears is actually the last one in the series - the user has to go “back” many times to get to the first explanation of what conditionals and control flow is all about. Maybe something got mixed up and launched me way ahead, and then tried to ‘resume’ that way or something, but it was rather confusing until I worked out that a lot of content had been skipped over.

  2. Throughout the conditional and control flow exercises there are no suggestions to print the output of the comparisons. Nearly ALL of these sequences are educational in finding out what the Boolean comparisons turn out to be - but running the code won’t print anything since it is only the assignments and nothing else. Since the user has already learned about strings, maybe the following code could to be pre-filled after the last “bool_five” assignment in all the code panels in this section?

print ("Results:") print ("1: " + str(bool_one)) print ("2: " + str(bool_two)) print ("3: " + str(bool_three)) print ("4: " + str(bool_four)) print ("5: " + str(bool_five))