Which function is used to accept input from the keyboard?
input()
What is the modulus (%) operator?
Returns the remainder after division.
What is a loop in Python?
A loop repeatedly executes a block of code.
Which keyword is used to define a function?
def.
What is a list in Python?
A list is an ordered, mutable collection of items.
Which data type stores decimal values?
float
What does ** operator do?
Used for exponentiation.
How many types of loops are there in Python?
Two: for loop and while loop.
What is the syntax to define a function?
def function_name():
Which brackets are used to create a list?
Square brackets [].
Which keyword declares a variable in Python?
No keyword is required.
What are Comparison Operators?
hey compare two values and return True or False.
Which loop is used to iterate over a sequence?
for loop.
How do you call a function?
By writing its name followed by parentheses ().
Is a list ordered?
Yes.
Which operator assigns a value?
=
What are Membership Operators?
in not in
Which keyword is used to exit a loop immediately?
break.
What is a parameter?
A parameter is a variable listed in the function definition.
Is a list mutable?
Yes.
Which function returns the data type of a variable?
type()
What are Identity Operators?
is is not
Which keyword is used as a placeholder inside a loop?
pass.
What is an argument?
An argument is the value passed to a function during a call.
Can a list contain duplicate values?
Can a list contain duplicate values?