Navigation:
Activity 5
Workshop Resources
Pre-requisite:
Python Basics - Variables
Difficulty:
Beginner
- Create two new variables: A variable named comp that stores the string
"Computer"
. - A variabe named five that stores the number 5.
Next, use the variables and what you learned in the previous activities to print out the following to the console. You MUST use the variables!
Computer
5
ComputerComputer
10
ComputerComputerComputer
15
Hint: If you’re stuck, consider using the +
operator. Remember that you can use the variables comp and five multiple times in the same line!