Lesson 7: Print in Python

Let's dive into how the print() function

💡 print()

Next, Let's make computer print your name and age this time

Use print() function and print your name

💡 How to Use the Print Function

Follow these steps to print your name and age using the print() function:

  • Remember, you must use parentheses (()) to print.
  • For String values (like your name), use quotes (" ").
  • For Integer values (like your age), no quotes are needed.

Example:
print("John")
print(25)

Type code below in textbox

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

Output:

    
Click to Reveal Solution
print("youname")
print(10)