Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Embed Hypothes.is?
    • Embebbed CalcPlot3D?
    • Cover Page
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Student Analytics
    • Autonumber Section Headings
    • License Version
    • Print CSS
      • Screen CSS
      • PrintOptions
    • Include attachments
    Searching in
    About 1 results
    • https://phys.libretexts.org/Courses/Berea_College/Introductory_Physics%3A_Berea_College/28%3A_The_Python_Programming_Language/28.01%3A_A_quick_intro_to_programming
      In the above example, we called the print() function and passed to it the variable b as an argument; this allowed us to print (display) the value of the variable b and verify that it was indeed equal ...In the above example, we called the print() function and passed to it the variable b as an argument; this allowed us to print (display) the value of the variable b and verify that it was indeed equal to the number 4. Most of these functions need to be “imported” from “modules”. For example, if you want to be able to take the square root of a number, then you need to load (import) the “math module” which contains the square root function, as in the following example:

    Support Center

    How can we help?