Python Continued Lesson 1 – Run
Now type the code into the IDE below and run the program to see the code’s output.
Python Continued Lesson 1 – Run Read More »
Now type the code into the IDE below and run the program to see the code’s output.
Python Continued Lesson 1 – Run Read More »
Study the code below: number1 = input(“Enter a number”) print(number1*5)
Python Continued Lesson 1 – Predict Read More »
Write a program that asks the user to enter a number from 1-10 to represent how they are feeling (1=Sad, 10=Happy). Get the program to output the message “I’m so sorry to hear you are not a happy bunny” if they type in a number from 1-5. Get the program to output the message “Good
Introduction to Python Lesson 4 – Make 3 Read More »
Write a program that performs the following steps: Prompt the user to create a password and store their input. Ask the user to re-enter the same password to confirm it, storing this second input in a different variable. Compare the two passwords: If the passwords match, display a confirmation message. If the passwords do not
Introduction to Python Lesson 4 – Make 2 Read More »
Write a program that will allow the user to input a value and output whether the value is zero or above (number >= 0) or below zero (number < 0).
Introduction to Python Lesson 4 – Make 1 Read More »
Modify the code so that it asks the user to enter a number, and responds with a message if they enter 1, and responds differently if another number is entered. Below, explain how you modified your code to work with numbers.
Introduction to Python Lesson 4 – 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 types in ‘Excellent’? Why does that happen? 2. What happens if the last two lines are removed and then the user enters ‘Bad’? Why does that happen?
Introduction to Python Lesson 4 – Investigate Read More »
Now type the code into the IDE below and run the program to see the code’s output.
Introduction to Python Lesson 4 – Run Read More »
What do you think the code will do? answer = input(“How are you today? Good/Bad”) if answer == “Good”: print(“Great to hear it!”) else: print(“Sorry you’re unhappy”)
Introduction to Python Lesson 4 – Predict Read More »
Write a program to input a weight in pounds and output the equivalent weight in kilograms. Weights can be converted from pounds to kilograms using the following formula kilo = pound * 0.45
Introduction to Python Lesson 3 – Make 4 Read More »