Programming fundamentalsLesson 1 of 1 in the course Expressions
Python Whitespace, Multi-Line Strings, and Line Joining
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Lesson progress
0 / 5
Your progress is kept in this browser only.Sign up to save it
Summary
Good spacing makes Python code easier to read and understand, even when spacing does not change how a program runs. This lesson introduces common whitespace conventions, including guidelines from PEP 8.
name = input("Enter someone's name: ") place = input("Enter a famous place: ")
name=input ("Enter someone's name: " ) place =input("Enter a famous place: ")
All flashcards
Quiz questions
Based on Introduction to Python Programming by Udayan Das, Aubrey Lawson, Chris Mayfield, Narges Norouzi (OpenStax), licensed CC BY 4.0. Adapted into a summary, flashcards and quizzes.
More in Programming fundamentals
All Programming fundamentals lessonsProgramming fundamentalsTracing Conditional and Function-Call Control Flow5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsWhile Loops: Conditions, Counters, and Input-Controlled Repetition5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsPython's Origins, Design Goals, and Popularity Measures5 flashcards · 5 quiz questions · 4 gamesPlay free →Programming fundamentalsPython Nested Decisions: Branches, Indentation, and Execution Paths5 flashcards · 5 quiz questions · 4 gamesPlay free →