Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What are meaningful variable names? Give an example.
Think about what information the variable is storing.
Why is indentation important in coding?
Consider how you read structured text, like poetry or essays.
What does using meaningful variable names accomplish?
Think about what helps you understand someone else's writing.
True or False: Comments should only state what the code is doing.
Consider how you would explain your thought process.
Write a Python function that demonstrates proper naming conventions, adequate comments, clear indentation, and logical simplicity in its structure.
Focus on clarity while achieving its purpose.
What mistakes can you identify in the following code snippet?
def calc():
x=5
y=10
res=x*y
print(res)Identify issues with naming and comments.
Think about what a new coder would struggle to understand.
4 more questions in this section. Enroll free to practise them all.
Enroll free