Basic Programming
Python
Python Symbols
Python Code
100

What is the symbol used to represent comments in Python?

(#) symbol

100

This function prints whatever is given to it.

print()

100

This is an operator (used for addition)

+

100

4**2 is equal to this number.

16

200

What is an =

this is an assignment operator.

200

This is a way of repeating a set of code many times

loop

200

These symbols mean  ():  ?

to call a function

200

This is what we call a sequence of instructions that accomplish a goal.

a program

300

What is the syntax for printing "Hello, World!" to the console in Python?

print("Hello, World!")

300

this is capitalized after the operator and the object...

the Class

300

These are used around a string of data

" "

300

Another name for coffee, this programming language was invented in 1995

Java (Java Script)

400

What is the syntax for creating a list in Python?

myList = [1, 2, 3, 4, 5]

400

this . (dot) is known as? and TRUE or FALSE, mainly used in Python programming?

dot notation and TRUE

400

This operation is represented by % to get the remainder.

modulo/modulus

400

Here's a bit of code. It would print:

season = "Spring is the best"
for i in range(5):
  print(season)

Spring is the best
Spring is the best
Spring is the best
Spring is the best
Spring is the best

500

The name of this operator:

!=

Not equal to

500

When does a WHILE LOOP stop ?

A while loop stops when the original condition becomes FALSE

500

True or false:

what are the 3 data types we have discussed in Python programming

Integers, Strings, Booleans

500

Grace Hopper found the first of these inside a computer, which became the term we use to refer to flaws in the code we write

Bugs/errors