first comp quiz

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards

command line interface

where you type commands on the keyboard at a prompt to tell the terminal what to do

where you start your terminal and REPL

2
New cards

to start a code

type python into your terminal, otherwise nothing will ever happen

3
New cards

REPL

read execute print loop

4
New cards

top box in python

used to edit a module of code that will eventually be run in the terminal or Trailhead

5
New cards

Boolean

a type of data that evaluates to True or False

technically they are strings but they are typed as bools

used when making logical decisions

6
New cards

indexing

using [] to pull a variable out of a line and print it alone

7
New cards

%

used to find remainders when dividing two numbers

remainders will pretty much only work with positive whole numbers

8
New cards

len()

used to find the length of a string

9
New cards

isalpha

used when strings are only made up of alphabetical letters

10
New cards

isdigit

used when expressions are only made up of digits

11
New cards

algorithm

a series of steps that end up producing a result

12
New cards

high-level

zoomed out, in the context of this class

13
New cards

object

a typed unit of data in memory

can also be expressions (a single int can be an expresssion)

14
New cards

conditional statement

statements that only happen if and only if something else occurs

15
New cards

assignment operator

assigns a variable some value

used to assign local variables usually

16
New cards

pseudocode

fake code, simplified

used to write out code before actually typing it in

17
New cards

loop statement

a statement that performs an action only a certain number of times

18
New cards

identifier

the function's name

ex. tea_bags

19
New cards

->

leads to the return type of the function

20
New cards

string concatenation

a joining of multiple elements

21
New cards

floats

will always prevail in terms of PEMDAS - they are the most precise

22
New cards

string x int

you can multiply a string times an integer and it will print as expected

23
New cards

return keyword

need to have this in there for a function to return an output

24
New cards

signature

the whole top line of the function

25
New cards

stack

shorter term memory of Python

names and frames are stored here

26
New cards

heap

definitions are housed here, longer term memory

27
New cards

keyword argument

specifies the name of the parameter

28
New cards

functions

used to help you extract from processes, go higher level

29
New cards

function call syntax

need a function name and argument list

30
New cards

function definition syntax

def function name (parameter list) -> return type:

docstring

what you function does

<p>def function name (parameter list) -&gt; return type:</p><p>docstring</p><p>what you function does</p>
31
New cards

==

to show if too things are equal

32
New cards

expressions

can totally switch them out if they evaluate to the same type

33
New cards

string comparison

doesn't always work the way you think it will - be very careful