Presentation is loading. Please wait.

Presentation is loading. Please wait.

Variables Table counter = 1 while counter < 4: print("Happy days") counter = counter + 1 print(“End of program”) What is printed?

Similar presentations


Presentation on theme: "Variables Table counter = 1 while counter < 4: print("Happy days") counter = counter + 1 print(“End of program”) What is printed?"— Presentation transcript:

1

2 Variables Table counter = 1 while counter < 4: print("Happy days") counter = counter + 1 print(“End of program”) What is printed?

3 Variables Table counter = 1 while counter < 4: print("Happy days") counter = counter + 1 print(“End of program”) What is printed?

4 What is printed? (Output)
Variables Table def input_name(): name = input("What is your name? ") counter = 1 while counter <= 4: print("Hello" + name) counter = counter + 1 print("Goodbye "+ name) What is printed? (Output) Step 1: Draw round all expressions Step 2: Draw arrows showing the order in which the statements will be executed Step 3: Work through the program filling in the variables table and the Output box

5


Download ppt "Variables Table counter = 1 while counter < 4: print("Happy days") counter = counter + 1 print(“End of program”) What is printed?"

Similar presentations


Ads by Google