Prog

Cards (18)

  • Libraries
    Bits of code written by you or others
  • Modules
    Allow you to share functions or feature with others
  • Random
    A library that comes with Python that you could import into your own project
  • Random.choice(seq)

    1. Inside the random module, there is a built-in function
  • Random.randint
    This function will generate a random number between a and b
  • Statistics
    • Python comes with a built-in
    • Imported a different library
  • Sys
    Is a module that allows us to take arguments at the command line
  • Average
    A function of this library that is quite useful
  • Argv
    Is a function within the sys module that allows us to learn about what the user typed in at the command line
  • Slice
    Is a command that allows us to take a list and tell the compiler where we want the compiler to consider the start of the list and the end of the list
  • Package
    Third-party libraries that add functionality
  • PyPI
    • Is a repository or directory of all available third-party packages currently available
  • Cowsay
    • Is a well-known package that allows a cow to talk to the user
  • Pip
    • Python has a package manager
    • Allows you to install packages quickly onto your system
  • APIs
    • Allow you to connect to the code of others
  • Requests
    Is a package that allows your program to behave as a web browser would
  • JSON
    A text-based format that is used to exchange text-based data between applications
  • Choice is loaded explicitly into our program Function takes into it a seq or sequence that is a list