Get Started

Your first Python code

It's time to run your first Python code!

Head to the code and hit the run code button to see the output.

This is a part of the course

“Introduction to Python”

View Course

Exercise instructions

  • Hit the run code button to see the output of print(5 / 8).

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Hit run code to see the output!
print(5 / 8)

This exercise is part of the course

Introduction to Python

BeginnerSkill Level
4.8+
2342 reviews

Master the basics of data analysis with Python in just four hours. This online course will introduce the Python interface and explore popular packages.

What is DataCamp?

Learn the data skills you need online at your own pace—from non-coding essentials to data science and machine learning.

Start Learning for Free