2.2.1 Programming Concepts Flashcards
Python is a _________ __________
Python is a programming language
Name 3 facts about python
Simple syntax similar to English
Designed to be easy to use
It’s a high-level language
What is a syntax in programming?
The ‘grammar’ of programming. It means there are rules for how you can write your code. If you don’t follow the rules, your program won’t run properly.
An output in Python is an ___-_____ ________
An output in Python is an on-screen display
To make text appear (or output to the screen) you can use _________
What’s the correct syntax to output:
Dulwich College Seoul
print (“Dulwich College Seoul”)
What’s the correct name of these?
parentheses
Something we want the computer to remember is called a __________
variable
When choosing a variable name you must:
Not include spaces
Use only letters, numbers and underscore _
Using upper and lowercase numbers is different
To print a variable name (for example ‘cheese’) you would code
print (cheese)