Programming Fundamentals

Creating Variables


1.Create a variable named carname and assign the value BMW to it.

2.Create a variable named number and assign the value 123 to it.

Output Variables


Algorithm exam questions often ask you to output data stored in variables. This is really simple and can be worth 1 or 2 marks. This is done using the print statement in Python.

3.Create a program that stores your name in a variable and outputs it to screen using the print statement.


5.Create a program that stores two numbers and outputs the two numbers added together using a print statement