Variables & Data Types
A variable is a storage location in the memory of the computer. A variable is usually given a name to make it easy to refer to (meaningful variable names). Values can be stored in a variable at any time during the execution of a program.
In the example below total is the variable and 36 is the value.
Complete the quiz below to test your variable data type knowledge:
Seven Stages of the Software Development Process
Analysis – to decide on the requirements (identifying the inputs, processes and outputs for the program.
Design – create a plan for the solution (creating structured diagrams or pseudocode for the program)
Implementation – carry out the plan (Programming the task in python)
Testing – to ensure the plan works
Documentation – record the events
Evaluation – judge the success of the process
Maintenance – check it continues to do the job
How many variables are in the program:
3 - name, birthyear and username
Data Types
name = String
birthyear = String
Username = String
What lines have :
Inputs: Line 4 - name = str(input()) Line 6 birthyear = str(input())
Processes: Line 7 - username = name + birthyear
Outputs: Line 8 - "Your username is", username)