Jump to content
Killersites Community


Popular Content

Showing content with the highest reputation since 03/12/2018 in all areas

  1. 1 point
    Hi, Lesson 6 contains a simple game where we define a flowControl() function with the following "if...else" statement: if answer == ("yes" or "y"): displayLesson() else: useTime() print("End program") If we run the module and input "yes" the statement is true but if we input "y" then we get the false/else statement. Only the first parameter is considered apparently, if we swap them ("y" or "yes") then "y" would be considered true and "yes" false. I found that if we remove the round brackets from that line and change the statement to: if answer == "yes" or "y": then both parameters work, "yes" and "y" are then considered as a true statement. Not a big deal, just thought i should mention it.
  2. 1 point
    UPDATE: Ok, it's fine now, I've managed to fix it, turns out I was modifying the wrong part of the document, I have now activated the displaying of errors! If anyone has any tips on a good ubuntu alternative for MAMP that is as close as possible to the original one, that would still be great, but otherwise it's all fine!