1/34
Based on class from Code First Girls
Describe the link between programming languages and computer processes
They act as a bridge between human language and computer processes.
When was Python first released?
Python was first released in 1991 by Guido van Rossum.
Describe 5 features of Python that make it a popular language for programmers.
1) It is free and open source
2) It is similar to English with good readability
3) It has a large standard library
4) It is an intepreted language read line by line, so there is no need to complete the code before testing.
5) Variables are determined at run time.
List 4 jobs that Python is commonly used for:
1) Server side web development
2) Software development
3) System scripting
4) AI and machine learning
Describe the function of an Integrated Development Environment
You can edit cope, complie/intepret, and debug within the environment. They are like a regular text editor but for code, and they aid with syntax editing. They can also convert written code into machine code.
What is the file extension for Python?
.py
Describe the three steps for running code.
1) Write the code - instructions for computer in a programming language.
2) Intepret the code - read line by line
3) Execution - compute executes the instructions to produce an output
Define syntax in general terms.
Syntax refers to the set of rules that define what symbols and characters we can use when programming. It is the grammar of coding.
Name two parts of Python syntax.
1) Python is case sensitive.
2) It is written in snakecase - each word is separated by underscore
What is the Python Console?
The Python console is a command line interpreter that takes input from the user, runs the code, and gives the required output. The console allows developers to write, test, and debug their code.
Define Interpreter Moder (Python Cosole)
Intepreter mode is where finished .py files are read and then executed in Python.
Define Interactive Mode (Python Console)
Interactive mode is a command line shell which gives immediate line feedback.
Define a String data type in Python (and how it is identified)
A String represents text and characters and is the name given to any sequence of characters in the code. You can indentify the string through the use of single or double quotations.
Give 3 formatting examples of String Methods
.upper ()
.lower ()
,title ()
Who popularised the Python code “Hello World”?
Popularised by the “The C Programming Languages” (1918) by Kenneth and Richie