Getting Started with Python - CBSE Class 11 Computer Science Notes, Diagrams and Solved Questions

Your first steps in Python: its features, interactive and script modes, tokens and identifier rules, variables with l-values and r-values, comments, the main data types, and which types are mutable or immutable.

In this chapter

  • Features of Python and a first program
  • Interactive mode versus script mode
  • Character set and the five kinds of tokens
  • Variables, assignment, l-value, r-value and comments
  • Numbers, bool and None, with type()
  • Strings, lists, tuples and dictionaries
  • Mutable and immutable types, seen with id()