Introduction to Python Lesson 3 – Run
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 »
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 »
Using the python IDE below, investigate the following and explain your findings in the text area below. 1. What happens if you change ‘name =’ to ‘word =’? Why? 2. What happens if you put quotes around name, in the print statement? Why?
Introduction to Python Lesson 2 – 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 2 – Run Read More »
What do you think the code will do? name = input(“What is your name?”) print(“Hello ” + name)
Introduction to Python Lesson 2 – Predict Read More »