Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Writing and Running Your First Python Programs

via CodeSignal

Overview

Every program begins with getting a computer to do something you can see. You'll write and run real Python code inside the editor, display messages on screen, annotate your work with comments so it stays readable, get comfortable with the plain numbers and text that programs handle every single day, and finish by using Python as a calculator to evaluate arithmetic on the spot.

Syllabus

  • Unit 1: Printing Output in Python
    • Make Your Program Say Hello
    • Print a Number on Screen
    • Combining Words and Numbers
    • Printing Two Lines of Output
  • Unit 2: Writing Readable Code
    • Adding a Note to Your Code
    • Hiding a Line from Output
    • Notes Beside Your Code
    • Bringing a Hidden Line Back
    • Grouping Code with Blank Lines
  • Unit 3: Numbers and Text Values
    • Discovering the Integer Type
    • Discovering the Floating Point Type
    • Discovering the String Type
    • Comparing All Three Types Together
  • Unit 4: Doing Simple Arithmetic
    • Adding Two Numbers
    • Multiplying and Subtracting
    • Dividing Numbers
    • Meeting Your First Error

Reviews

Start your review of Writing and Running Your First Python Programs

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.