Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU Foundations of Programming Python Exam - Topic 5 Question 4 Discussion

Actual exam question for WGU's Foundations of Programming Python exam
Question #: 4
Topic #: 5
[All Foundations of Programming Python Questions]

Which symbol begins a single-line comment in Python?

Show Suggested Answer Hide Answer
Suggested Answer: B

In Python, a single-line comment begins with the # symbol.

Example:

# This is a comment

print('Hello')

Python ignores the comment when the program runs. The Python documentation identifies # as the symbol used for comments.

Therefore, the correct answer isB. # pound symbol.


Contribute your Thoughts:

0/2000 characters
Jean
17 days ago
I’m a bit confused; could it be the // double forward slash? That seems familiar.
upvoted 0 times
...
Mel
22 days ago
I remember practicing a question like this, and I think the answer is B.
upvoted 0 times
...
Lelia
27 days ago
I think it's the # pound symbol, but I’m not completely sure.
upvoted 0 times
...

Save Cancel