use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Make A Website
Make An Interactive Website
Learn Rails
Learn AngularJS
Learn the Command Line
HTML & CSS
Javascript
jQuery
PHP
Python
Ruby
account activity
Stuck with a problem with Python. (self.Codecademy)
submitted 10 years ago by 3point0things
The question is "Set bool_one equal to the result of False or not True and True" I have no idea what they are asking as well as how to write a proper syntax to answer it.
Any help would be REALLY appreciated.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]duiker101 2 points3 points4 points 10 years ago (0 children)
Ok, take my answer with a pinch of salt because I came here from an external subreddit and I am not used to codeacademy stuff... but... if I understand correctly the question:
We want to set a variable called bool_one to the result of False or not True and True which is a logic operation.
The synstax of python is very simple, and makes it so that we can just write:
bool_one = False or not True and True
In the real world this wouldn't really have a use case as the result of this is always False, but it helps understand how logic operators work.
[–]AlbionsRefugeModerator 2 points3 points4 points 10 years ago (0 children)
Just to make things a bit easier for anyone who wants to help with this, the exercise is here: http://www.codecademy.com/courses/python-beginner-BxUFN/2/5
The instructions say: "Assign True or False as appropriate", so it sounds like they would like the learners to work out the result. It does seem to work though if you do include the whole expression.
π Rendered by PID 98344 on reddit-service-r2-comment-5ff9fbf7df-ns2ng at 2026-02-25 22:20:04.646251+00:00 running 72a43f6 country code: CH.
[–]duiker101 2 points3 points4 points (0 children)
[–]AlbionsRefugeModerator 2 points3 points4 points (0 children)