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

Which symbol begins a single-line comment in Python?
B) # pound symbol
A) // double forward slash
C) * asterisk
D) % percent symbol

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
Idella
9 hours ago
I definitely remember that comments start with a symbol, but I can't recall if it's the asterisk or the pound symbol.
upvoted 0 times
...
Audry
6 days ago
I'm not entirely sure, but I feel like it could be the double forward slash. That was in a similar question we did.
upvoted 0 times
...
Glenna
11 days ago
I think it's the pound symbol, so that would be B. I remember it from the practice questions.
upvoted 0 times
...
Carlton
16 days ago
I’m pretty confident it’s the # symbol, but I guess I should double-check my notes.
upvoted 0 times
...
Jean
2 months ago
I’m a bit confused; could it be the // double forward slash? That seems familiar.
upvoted 0 times
...
Mel
2 months ago
I remember practicing a question like this, and I think the answer is B.
upvoted 0 times
...
Lelia
2 months ago
I think it's the # pound symbol, but I’m not completely sure.
upvoted 0 times
...

Save Cancel