Improvement Choices

Report a typo

Generally, comments are a great idea, but now it's time to improve some of them.

Match the examples below with the corresponding fixes.

Match the items from left and right columns
a = input() # the first variable from user input is name
name, surname = "Ned", "Stark" # assigning name to name and surname to surname
age += 20 # making "age" 20 years less
student = "Mark Smith" # we give this variable the value "Mark Smith" because we want to be able to work with it later
Avoid commenting obvious things
Fix the contradiction
Keep comments concise
Change the name of the variable
___

Create a free account to access the full topic