SCRIPTING EXAM 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:47 AM on 6/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

38 Terms

1
New cards

interpreter

processes a program line-by-line

2
New cards

compiler

processes a program’s code as a whole

3
New cards

Symbol to comment in python?

#

4
New cards

Triple quotes

used for multi-line strings

5
New cards

\n

new line

6
New cards

\t

tab

7
New cards

**

exponent

8
New cards

// (operator)

floor division (round down)

9
New cards

list

contains multiple of the same data type

10
New cards

tuple

list, but immutable

11
New cards

dictionary

stores key-value pairs

12
New cards

keys()

returns all the keys in a dictionary

13
New cards

values()

returns all the values in a dictionary

14
New cards

items()

returns all the key-value pairs in a dictionary

15
New cards

range function

(start, stop, step)

16
New cards

break

exits loop

17
New cards

continue

moves to next loop iteration

18
New cards

Set

can contain multiple elements of different data types

19
New cards

uniform()

returns random float between (a, b)

20
New cards

random()

returns random float between (0.0, 1.0)

21
New cards

randint()

returns random integer between (a, b)

22
New cards

relative path

location relative to current working directory

23
New cards

absolute path

location starting from root of the file system

24
New cards

os.sep

view os separator

25
New cards

r

read (start at index 0)

26
New cards

w

write (start at index 0)

27
New cards

a

append (start at end of file)

28
New cards

r+

read and write

29
New cards

w+

write and read

30
New cards

a+

append and read

31
New cards

rb

read binary file

32
New cards

wb

write to binary file

33
New cards

ab

append to binary file

34
New cards

with keyword (Python file operations)

closes a file after operations in the block are finished

35
New cards

shutil.copy()

copy a file from source path to dst path

36
New cards

os.walk()

generates the file names in a directory tree by walking either top-down or bottom-up

37
New cards

rfind()

return the highest (rightmost) index where a substring is found

38
New cards

AttributeError

error is raised when you attempt to change an element of a tuple