Python Basics
Data Types & Input
Math & String Operators
Comments & Debugging
Programming Languages & Mad Libs
100

What Python command displays information on the screen?

print()

100

What data type is the number 15?

Integer

100

What symbol represents multiplication in Python?

*

100

What symbol begins a single-line comment in Python?

#

100

What is a programming language used to give computers?

Instructions

200

What do we call a named storage location for information in a program?

A variable

200

What data type is the number 6.8?

Float

200

What operator finds the remainder after division?

%

200

What does the Python interpreter do with comments?

Ignores them.

200

What type of language determines variable types while the program runs?

Dynamically typed 
300

What are three characteristics of a variable?

Name, Type, and Value

300

What Python function collects information from a user?

input()

300

What will print("Hi" + "There") display?

HiThere

300
Give one reason programmers use comments.

Improve readability, remember their work, or help teammates understand code.

300

What type of language uses declared or checked variable types?

Statically Typed 

400

What data type stores text or a sequence of characters?

String

400

What Python function converts a value into an integer?

int()

400

What will print ("Go" * 3) display?

GoGoGo

400

What is wrong with this code: print "Hello"?

It is missing parentheses.

400

What is one difference between compiled and interpreted languages?

Compiled code is translated before execution; interpreted code is executed through an interpreter.

500

What is the difference between = and == in Python?

= assigns a value; == compares values

500

Why must user input be converted before using it in a mathematical calculation?

Because input is initially stored as a string.

500
What will print(4 + 3 * 2) display?

10

500

Why should programmers test their programs with different inputs?

To find errors and make sure the program works correctly.

500

How many user inputs were required in the Mad Libs project, and what had to happen to every input?

At least 12, and every input had to appear in the story.

M
e
n
u