livepython.net

16. Python Program to Create and Print a Variable

EasyVariables

Overview

Learn to create and use basic string variables in Python.

Problem Statement

Create a variable called name that holds the text "John", then print its value.

Constraints:

  • Variable must be named exactly name
  • Must use string quotes (either single or double)
  • Print just the variable's value

Input

  • No input required

Output

John

Learn this firstChapter 4 · Python Variables: Store and Use Values
solution.py
# write your code here

EXPECTED OUTPUT

1John

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.