Basic Programming
Python
Python Symbols
Python Code
100

What is the symbol used to represent comments in Python?

(#) symbol

100

This command prints whatever is given to it.

print()

100

This is an operator (used for addition)

+

100

4*2 is equal to this number.

8

200

What is an "=" known as in Python programming

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/algorithm

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 variable...

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 to show a method follows?

dot notation and TRUE

400

This operation is represented by *

multiplication

400

Here's a bit of code. What would it 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

 What does the following operator show?

!=

Not equal to

500

When does a WHILE LOOP stop ?

A while loop stops when the original condition becomes FALSE

500

what are the 4 data types we have discussed in Python programming?

Integers, Strings, Booleans, and Floats

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