basic constructions hold the coordinates of point and let be the length of the move pseudo code ( not "realcodejust "sketch of the logic"then goes like random number in [ , if < move northy else if < move eastx else if < move southy else if < move westx note the need for first asking about the value of and then performing an action if the answer to the "ifquestion is positive (true)we are done and can skip the next else if questions if the answer is negative (false)we proceed with the next question the last test if : could also read just elsesince we here cover all the remaining possible values the exact code in python reads import random random random(if < move north elif < move east elif < move south elsemove west random number in [ , we use else in the last test to cover the different types of syntax that is allowed python recognizes the reserved words ifelif (short for else if)and else and expects the code to be compatible with the rules of if teststhe test reads if condition:elif condition:or else:where condition is boolean expression that evaluates to true or false note the closing colon (easy to forget!if condition is truethe following indented block of statements is executed and the remaining elif or else branches are skipped if condition is falsethe program flow jumps to the next elif or else branch the blocks after ifelifor else may contain new if testsif desired regarding colon and indentyou will see below that these are required in several other programming constructions as well working with if tests requires mastering boolean expressions here are some basic boolean expressions involving the logical operators ==!=and