Data Types
List
Program Correct/Wrong
Anything
100

What is a string.

A string is a type of datatype that represents a set of text.

100

Is a list a data type? 

No, list are used to store multiple items in a single variable.

100

PRINT('Hello World')

Wrong
The word print should all be lowercase instead of all uppercase.

100

Free points!

Yaaaaa

You get 100 points for free

200

What is an integer.

An integer is any number that does not contain decimals.

200

When creating a list, do you use () or []?

[]

You use () for variables.

200

Sorry you do not get any points!

:(

200

What are <,>, <=,>=,!=,== called?

They are all comparison operands.

300

What is a float?

It is a

300

What is the index for a list?

It starts with 0, not 1.

300

def add(x, y):

    return x + y

Correct

300

What is # used for?

It can be used for notes and anything in the line would not be executed.

400

What is a boolean?

Boolean is used to test whether the result of an expression is true or false.

400

Is there a limit to how much can be put to a list?

No, any amount is fine.

400

Name == input('What is my name?')

If Name = 'Aaron'

    print('You are correct!')

If name != 'Aaron'

    print('You are wrong.')

False

The usage of the equal sign is not correct.

400

What are user inputs used for?

It is used so other people can interact with your program and type something.

500

Which of these is not a data type.

a) boolean

b) float

c) functions

d) strings

c) functions
Functions is not a data type. It is a block of code which only runs when it is called.  

500

What does the append function do?

It adds to a list.

500

password=input("What is the password?")

if password =='python':

  print('access granted')

else:

  print('Wrong password!')

Correct

500

What is the difference between random.randit and random.choice?

The random.randit function is for choosing a random thing between a minimum point and a maximum point. The random.chocie function is for choosing a random thing from what is given.