Python- Boolean Cross-checking
<p>I have an assignment on using ONLY boolean statements for this question: "Can I register today? A student can register on Monday if Senior, on Tuesday if Junior, on Wednesday if Sophomore, and on Thursday if Freshman."</p>

<p>Is there a simple way to cross check each and every day and status to see if they are either True or False without using if/else statements? If so, how would the code look?</p>

<p>Perhaps something like this??</p>

<pre><code>from datetime import datetime

def options():
  print """
Are you a? [Enter 0-4]
0) Senior
1) Junior
2) Sophomore
3) Freshman
4) quit
"""


print "Can I register today?"
while True:
  options()
  selection = raw_input("Enter status: ")
  try:
    selection = int(selection)
  except ValueError:
    print "Invalid entry please try again"
    continue
  # if you can't use any if statements
  # replace the if statement with a print statement saying to exit using control c
  # or above the while loop, create the variable selection = None
  # change the while loop from a while True to while selection != 4:
  # I leave it up to you :-)
  if selection == 4:
    break
  # 0 is monday
  weekday = datetime.today().weekday()
  print
  print "reply: {0}".format(selection == weekday)
</code></pre>

python boolean