livepython.net

44. Python Program to Print a Hashtag Inside a String

EasyComments

Overview

A # sign inside a string is printed; outside a string, it starts a comment.

Problem Statement

Print exactly the message below. Then add an inline comment after your code that says what it does (the comment must not appear in the output).

Tweet: I love #Python and #coding

Input

No input is required for this question.

Output

Tweet: I love #Python and #coding

Learn this firstChapter 6 · Python Comments: Single-Line, Inline and Multi-Line
solution.py
# write your code here

EXPECTED OUTPUT

1Tweet: I love #Python and #coding

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.