Professional Documents
Culture Documents
Python - Variables
Aim: Key Words:
Input
• Understand Variables & Inputs Process
Outcomes To Be Able To: Output
Variable
1. Explain what a variable is Input
2. List the types of variable in Python Value
Name
3. Create variables for users Data type
4. Link strings and variables using Concatenation
Syntax
concatenation String
5. Produce outputs using strings and Integer
variables Float
Boolean
Computer Programs
• Variable Names
• Data Type – String (text or any value on a keyboard)
• Values e.g. Mary Jones
Data Types
• Char – one character
• String – text(i.e. more than one character)
• Integer – real numbers (whole numbers)
• Float – decimal numbers
• Boolean – True or False – Yes or No
Syntax – try this:
Python - Variables
Aim: Key Words:
Concatenation
• Understand Variables & Inputs Input
Outcomes To Be Able To: Process
Output
1. Explain what a variable is Syntax
2. List the types of variable in Python Variable
Value
3. Create variables for users Name
4. Link strings and variables using Data type
Value
concatenation String
5. Produce outputs using strings and Integer
variables Float
Boolean
Homework
• Visit https://repl.it/languages/python3
• And get the following code to work: