Python Continued Lesson 3 – Make 2
Create a program which asks for a number and then prints a 1, then a 2, then a 3 up to the inputted number.
Python Continued Lesson 3 – Make 2 Read More »
Create a program which asks for a number and then prints a 1, then a 2, then a 3 up to the inputted number.
Python Continued Lesson 3 – Make 2 Read More »
Write a program that continuously accepts integer values from the user and adds them to a total sum. The loop stops and the sum is printed when the user enters the value -1.
Python Continued Lesson 3 – Make 1 Read More »
Modify the code above so that it matches the code below: x = 0 total = 0 while x != 10: x = int(input(“Enter a number”)) total = x + total print(“Your final total is “, total) Below, explain what the code is doing and how it words line by line.
Python Continued Lesson 3 – Modify Read More »
Using the python IDE below, investigate the following and explain your findings in the text area below. 1. What happens if you remove int() from the input statement? Explain the result. 2. What happens if you replace the ‘!’ sign with another ‘=’ sign? Explain the result.
Python Continued Lesson 3 – Investigate 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 »