Trial 005: Introduction to Python. Topic. Introduction to Python. Academy Trial Briefing. Write a tiny first program with a named string, a comment, and print() output. The academy console is dark. Your first Python statement must wake the training terminal without copying any outside challenge text. Learn Before You Code. Lesson 1. Python focus: first statements. Python runs one statement at a time. In this Sith Academy drill, keep each line small so you can see what value Python stores or...
Full Transcript
Trial 005: Introduction to Python. Topic. Introduction to Python. Academy Trial Briefing. Write a tiny first program with a named string, a comment, and print() output. The academy console is dark. Your first Python statement must wake the training terminal without copying any outside challenge text. Learn Before You Code. Lesson 1. Python focus: first statements. Python runs one statement at a time. In this Sith Academy drill, keep each line small so you can see what value Python stores or prints. Code example. signal = "ready" print(signal) Lesson 2. Build from named values. A variable name on the left of = points to a value on the right. Text values are strings, and strings need quotes. Code example. command phrase = "Begin the trial" Lesson 3. Debug the beginner mistake. If Python says a name is not defined, check spelling. If your text is missing quotes, Python thinks it is a variable name. Code example. # comment notes are ignored by Python print(command phrase) Micro Trial Steps. Step 1. Write one Python line. Concept. Python statement. Create one simple assignment line before adding output. Checkpoint. The file has a valid Python statement. Step 2. Store text. Concept. string value. Put Begin the trial inside quotes and assign it to command phrase. Checkpoint. command phrase is a string.
Trial 005: Introduction to Python. Topic. Introduction to Python. Academy Trial Briefing. Write a tiny first program with a named string, a comment, and print() output. The academy console is dark. Your first Python statement must wake the training terminal without copying any outside challenge text. Learn Before You Code. Lesson 1. Python focus: first statements. Python runs one statement at a time. In this Sith Academy drill, keep each line small so you can see what value Python stores or...