Loading [MathJax]/extensions/mml2jax.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.02%3A_Arrays
      Arrays are a convenient way to hold a series of numbers that are all alike, for example, all of the values of the position and corresponding time values for the trajectory of the object. In Python, we...Arrays are a convenient way to hold a series of numbers that are all alike, for example, all of the values of the position and corresponding time values for the trajectory of the object. In Python, we can define variables that hold arrays instead of a single value (arrays are called “lists” in Python): #define an array of values for the position of the object position = [0 ,1 ,4 ,9 ,16 ,25] #define an array of values for the corresponding times time = [0 ,1 ,2 ,3 ,4 ,5]

    Support Center

    How can we help?