Python Programming Fundamentals — Question 5
Back to all questionsGroup — This is a valid variable name.
if — This is an invalid variable name because
ifis a reserved keyword in Python and cannot be used as a variable name.total marks — This is an invalid variable name because it contains a space, which is not allowed in variable names. A variable name must be a single continuous string without spaces.
S.I. — This is an invalid variable name because it contains full stops, which are not allowed in variable names. Variable names can only include letters, digits, and underscores.
volume — This is a valid variable name.
tot_strength — This is a valid variable name.
#tag — This is an invalid variable name because it starts with a hash symbol (#), which is not allowed in variable names. Variable names must start with a letter or underscore.
tag — This is an invalid variable name because it contains a dollar sign (), which is not allowed in variable names. Variable names can only include letters, digits, and underscores.
9a — This is an invalid variable name because it starts with a digit, which is not allowed in variable names. Variable names must start with a letter or underscore.
for — This is an invalid variable name because
foris a reserved keyword in Python and cannot be used as a variable name.