Python Continued Lesson 3 – Run
Now type the code into the IDE below and run the program to see the code’s output.
Python Continued Lesson 3 – Run Read More »
Now type the code into the IDE below and run the program to see the code’s output.
Python Continued Lesson 3 – Run Read More »
Study the code below: x = 0 while x != 10: x = int(input(“Enter a number: “)) print(“You found the stopping value!”)
Python Continued Lesson 3 – Predict Read More »
Write a program that asks the user for a number from 1-3. If it is a 1, the program will add 10 to it. If it is a 2, the program will multiply it by 10. If it is a 3, it will divide the number by 10.
Python Continued Lesson 2 – Make 3 Read More »
Write a program that asks the user for a letter and says if the letter is an ‘a’ or not.
Python Continued Lesson 2 – Make 2 Read More »
Write a program that asks the user for a number and says if they have entered a zero or not.
Python Continued Lesson 2 – Make 1 Read More »
Modify the code so that it also responds with a unique message if the user types in the word ‘Terrible’. Below, explain how you modified the above code.
Python Continued Lesson 2 – Modify Read More »
Using the python IDE below, investigate the following and explain your findings in the text area below. 1. What happens if the user is asked to type in the numbers 1, 2 or 3, instead of Good, OK and Bad? 2. What changes are needed to get the code to run?
Python Continued Lesson 2 – Investigate Read More »
Now type the code into the IDE below and run the program to see the code’s output.
Python Continued Lesson 2 – Run Read More »
Study the code below: answer = input(“How are you today? Good/OK/Bad”) if answer == “Good”: print(“Great to hear it!”) elif answer == “OK”: print(“Average day this, is it?”) elif answer == “Bad”: print(“Sorry you’re unhappy”) else: print(“You didn’t answer correctly”)
Python Continued Lesson 2 – Predict Read More »
Write a program that asks the user for the dimensions for a box in cm, and then works out its volume. The program should accept 3 positive integers separately.
Python Continued Lesson 1 – Make 4 Read More »