S
Seoffix.com
Sign In Get Pro Membership

Python Foundations

Hello, Python

Beginner Python 20 XP

Hello, Python

Python reads top to bottom. A variable stores a value, and print() shows it.

Example

city = "Pune"
print("Welcome to " + city)

Your task

Store your name in name and print Hello, followed by the name.

Hints

  1. Assign a string to name first
  2. Join strings with +
  3. print("Hello, " + name)

Check your understanding

Answer every question to pass.
1. Which function shows output in Python?

Your answer

This lesson is checked against the lesson rules. Your code is never run on our servers.

AI Code Explainer & Translator

Runs without any outside service.
 
Mark Complete & Earn XP
Earn 20 XP after you pass the quiz. Finish every lesson in the track to earn its certificate.
Sign in to earn XP