Beginner · PYTHON PROGRAMMINGYour first Python program
What you will learn
Run a Python statement and understand standard output.
Understand the concept
Python executes source code through an interpreter. The built-in print function writes text followed by a newline.
Practise
Change the greeting and print your learning goal on a second line.
Common mistake
Use matching straight quotation marks and include parentheses around the value passed to print.
[py_tutorial_code]
Experiment with the program below. Your code and input are sent to the selected compiler only when you run it.
Tab indents · Shift+Tab unindents · Esc then Tab leaves the editor · Ctrl/Cmd+Enter runs · Ctrl/Cmd+S saves a draft
Changes save automatically to your account.
Input / output example
Example inputNo input required.
Expected output for the original programHello, TCS Pune!
Output will appear here.
Log in to save your progress