Question Detail

COS 102 If staments Objective Question

Question

In Python's if statement syntax, what punctuation mark must terminate the condition line (e.g., if score >= 50___)?
Options
A .
B ;
C :
Correct Answer
D ,
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 6, 'The 'If' Syntax', explicitly states under 'The Colon': 'Must end with :.'

Hint

Look at the 'The 'If' Syntax' slide and the explanation for 'The Colon'.

Question Info