Writing your first Python script
Now, you will write your first line of Python code.
Python's print()
function displays messages and code results in the shell.
Write your code inside the Python script.py
script and replace ____
with the correct code.
This exercise is part of the course
Introduction to Python for Developers
Exercise instructions
- Use Python's built-in
print()
function to display"Learning Python"
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Replace ____ below to display "Learning Python"
____("____")