Varaiables
Operators
Loops
Functions
Lists
100

Which function is used to accept input from the keyboard?

input()

100

What is the modulus (%) operator?

Returns the remainder after division.

100

What is a loop in Python?

A loop repeatedly executes a block of code.

100

Which keyword is used to define a function?

def.

100

What is a list in Python?

A list is an ordered, mutable collection of items.

200

Which data type stores decimal values?

float

200

What does ** operator do?

Used for exponentiation.

200

How many types of loops are there in Python?

Two: for loop and while loop.

200

What is the syntax to define a function?

def function_name():

200

Which brackets are used to create a list?

Square brackets [].

300

Which keyword declares a variable in Python?

No keyword is required.

300

What are Comparison Operators?

hey compare two values and return True or False.

300

Which loop is used to iterate over a sequence?

for loop.

300

How do you call a function?

By writing its name followed by parentheses ().

300

Is a list ordered?

Yes.

400

Which operator assigns a value?

=

400

What are Membership Operators?

in not in

400

Which keyword is used to exit a loop immediately?

break.

400

What is a parameter?

A parameter is a variable listed in the function definition.

400

Is a list mutable?

Yes.

500

Which function returns the data type of a variable?

type()

500

What are Identity Operators?

is is not

500

Which keyword is used as a placeholder inside a loop?

pass.

500

What is an argument?

An argument is the value passed to a function during a call.

500

Can a list contain duplicate values?

Can a list contain duplicate values?