Skip to main content
Taylor & Francis Group Logo
    Advanced Search

    Click here to search products using title name,author name and keywords.

    • Login
    • Hi, User  
      • Your Account
      • Logout
      Advanced Search

      Click here to search products using title name,author name and keywords.

      Breadcrumbs Section. Click here to navigate to respective pages.

      Chapter

      Expressions
      loading

      Chapter

      Expressions

      DOI link for Expressions

      Expressions book

      Expressions

      DOI link for Expressions

      Expressions book

      ByTed Herman
      BookA Functional Start to Computing with Python

      Click here to navigate to parent product.

      Edition 1st Edition
      First Published 2013
      Imprint Chapman and Hall/CRC
      Pages 14
      eBook ISBN 9780429195716
      Share
      Share

      ABSTRACT

      Computing starts to become interesting when operators and types combine to form expressions . Throughout science, there are expressions about equalities or inequalities, typically called formulas or equations. Scientific breakthroughs sometimes have concise technical statements expressed by such formulas. Students learn how to calculate with expressions (usually algebraic expressions), but the same general way of manipulating symbols happens with logic, balancing chemical reaction equations, deducing voltages for a circuit, and so on. Every student learns how, with the aid of a calculator, to find the x satisfying x = 8/(52 − 3× 7). Early on, students learn rules of what to do first, how to proceed from one step to the next, in order to solve such problems. Similarly, programming languages need syntax rules that guide interpretation of source code, which is the topic of this chapter. A Python program might contain an expression

      not True or not False and True

      Without syntax rules , this expression seems ambiguous. Programs can also mix operators and arguments having a variety of types; here, syntax rules (like grammar in English) can improve programming style, so that programs written by one person are more easily understood by someone else.

      T&F logoTaylor & Francis Group logo
      • Policies
        • Privacy Policy
        • Terms & Conditions
        • Cookie Policy
        • Privacy Policy
        • Terms & Conditions
        • Cookie Policy
      • Journals
        • Taylor & Francis Online
        • CogentOA
        • Taylor & Francis Online
        • CogentOA
      • Corporate
        • Taylor & Francis Group
        • Taylor & Francis Group
        • Taylor & Francis Group
        • Taylor & Francis Group
      • Help & Contact
        • Students/Researchers
        • Librarians/Institutions
        • Students/Researchers
        • Librarians/Institutions
      • Connect with us

      Connect with us

      Registered in England & Wales No. 3099067
      5 Howick Place | London | SW1P 1WG © 2022 Informa UK Limited