Introduction to Python Lesson 3 – Make 1
Write a program that will store two integer inputs from the use and subtract the second from the first, then display the result.
Introduction to Python Lesson 3 – Make 1 Read More »
Write a program that will store two integer inputs from the use and subtract the second from the first, then display the result.
Introduction to Python Lesson 3 – Make 1 Read More »
Modify the code above so that that it multiplies the two inputted values instead of adding them. Below, explain what your modified code is doing.
Introduction to Python 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 enclose both of the input statements with the int() function? (e.g. number1 = int(input(“Enter a number”)) 2. What does the int() function do? Explain the result of the code alteration.
Introduction to Python Lesson 3 – 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 3 – Run Read More »
What do you think the code will do? number1 = input(“Enter a number: “) number2 = input(“Enter another number: “) answer = number1 + number2 print(answer)
Introduction to Python Lesson 3 – Predict Read More »
Write a program that asks the user for their name, their age and their favourite colour, storing each answer in separate variables. The program must then summarise the information in the format: “Your name is X, your age is X and your favourite colour is X.”
Introduction to Python Lesson 2 – Make 4 Read More »
Write a program, which asks for your current grade in Maths, English and Science, then displays list information in the format: “Your current grades are: Maths-X, English-X, Science-X.”
Introduction to Python Lesson 2 – Make 3 Read More »
Write a program that will allow the user to input their name and then output the name joined with a greeting in the format: “Hello Joe”.
Introduction to Python Lesson 2 – Make 2 Read More »
Write a program that will allow the user to input their name and age and then output the name and age that have been entered on the screen.
Introduction to Python Lesson 2 – Make 1 Read More »
Modify the code above so that it asks the user to input their first name and surname separately, then prints a statement including the two variables. Below, explain what your modified code is doing.
Introduction to Python Lesson 2 – Modify Read More »