DUMMY CHAPTER
Welcome, learner!
Let's take our very first step and try to print something using Python. To do this, we'll use the print()
function. To print your desired text, simply enclose it in quotation marks "..."
or '...'
, otherwise Python will try to find a variable with that name (which we'll discuss later).
So, if you want to print a sentence, use the following code and execute it:
print("Some message")
This will display the following in the console:
Some message
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 50
DUMMY CHAPTER
Swipe to show menu
Welcome, learner!
Let's take our very first step and try to print something using Python. To do this, we'll use the print()
function. To print your desired text, simply enclose it in quotation marks "..."
or '...'
, otherwise Python will try to find a variable with that name (which we'll discuss later).
So, if you want to print a sentence, use the following code and execute it:
print("Some message")
This will display the following in the console:
Some message
Thanks for your feedback!