# data[].attributes.body
add comments to your program to describe what each section of code is neede

# data[].attributes.body
improve your original flowchart including a while loop and at least one nested if

Common EBIs

- use the correct symbols for start/stop, input/output process and if

- Be specific about what action is doing e.g. output of text should quote exactly what is being written on screen

# data[].attributes.body
While Loop Example

# data[].attributes.attachment_link.readable_text
'the following program sets up a variable called answer with the number 2.
'The while loop will continue until the variable is changed to 3.

answer =2
while answer != 3:
    print("not yet 3")
    answer = int(input())
    

# data[].attributes.body
Nested If Example

# data[].attributes.attachment_link.readable_text
print("Choose option 1 or 2?")
answer = int(input())

if answer == 1:
    print("You have chosen option 1")

elif answer == 2:
    print("You have chosen option 2")

else:
    print("Error, not a correct choice")

# data[].attributes.body
How do I use while loops and nested ifs?

# data[].attributes.body
Create a flow chart of your cinema program

This should include:

- An output greeting the user and telling them there are two film choices

- an input reading their choice (1 or 2)

- an if statement that display information on film 1 or two depending on the

# data[].attributes.body
Create a circuit which moves the motor based on an input of your choice. Screenshot and explain your choice and upload to sharepoint

# data[].attributes.attachment_link.description
A free browser based application for simulating simple circuits of logic gates.

# data[].attributes.body
If example

# data[].attributes.attachment_link.readable_text
print("you come to the end of a road, do you go left or right?")
answer = input()
if answer == "right":
    print("you go right...")
elif answer == "left":
    print("you go left...")
else:
    print("you chose neither!")

# data[].attributes.body
Basic input and output

# data[].attributes.attachment_link.readable_text
print("What is your name?")
name = input()
print("Hello " + name)

