Download presentation
Presentation is loading. Please wait.
Published byΚλωπᾶς Κουρμούλης Modified over 6 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.