Lesson 7: Print in Python

Let's dive into how the print() function works in Python!

💡 What is print()?

The print() function in Python is like telling the computer, "Hey, show this to me on the screen!" Here's a simple example:

print("Hello")

This will make the computer say Hello on the screen.

🚀 Try it Yourself!

Write some Python code below and click "Run" to see what happens!

>> Remember, you must use parentheses to print. Any content you want to print should go inside the parentheses().

>>Secondly, if its String(alphabets); They must be inside quotes " "


Type code below in textbox

Print hello or some name or anything ⬇️ ⬇️

Coding box below - Click in box and type text here! ⬇️ ⬇️

Output:

    
Click to Reveal Solution
print("hello Peppa pig")