greeting = "Hello, Python!"
print(greeting)
#source code --> clcoding.com
Explanation:
Define the Variable:
greeting = "Hello, Python!" assigns the text "Hello, Python!" to the variable greeting.
A string is a sequence of characters enclosed in double (" ") or single (' ') quotes.
Print the Value:
print(greeting) displays the content stored in the greeting variable on the screen.
Output:
Hello, Python!
0 Comments:
Post a Comment