Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Code Your First Python Program (Summary)

In this video course, you wrote and executed your first Python program! You wrote a small program that displays the text Hello, World using the print() function.

Then you learned about syntax errors, which occur before IDLE executes a program that contains invalid Python code, and runtime errors, which only occur while a program is running.

You saw how to assign values to variables using the assignment operator (=) and how to inspect variables in the interactive window.

Finally, you learned how to write helpful comments in your code for when you or someone else looks at in the future.

In this video course, you:

  • Wrote your first Python program
  • Learned what happens when you run a program with an error
  • Learned how to declare a variable and inspect its value
  • Learned how to write comments

To check your learning progress, you can take Your First Python Program Quiz.

For more information on concepts covered in this course, you can check out:

Download

Course Slides (.pdf)

1.3 MB

forghm25 on Sept. 18, 2022

Great vid

Become a Member to join the conversation.