Computational Thinking Syntax & Functions

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

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:50 AM on 9/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

print()

Output what it holds for the user

2
New cards

input()

Creates something for user to input

3
New cards

hex()

Converts to hexidecimal

4
New cards

bin()

Converts to binary

5
New cards

str()

Converts to string

6
New cards

type()

Identifies the data type of an “item”

7
New cards

int()

Converts to integer

8
New cards

float()

Converts to a float

9
New cards

min()

Finds minimum value

10
New cards

max()

Finds maximum value

11
New cards

len()

# of something in a container


12
New cards

math.log10()

Log 10 conversion

13
New cards

math.sqrt()

Gives square root

14
New cards

random.random()

Gives random # 0.0 to 1.0

15
New cards

random.randint()

Random whole # (integer)

16
New cards

random.choice()

Random value from sequence

17
New cards

continue

Ends the current iteration of a loop to begin the next iteration

18
New cards

break

stops the current iteration when it is unable to do so itself - jumps to the next statement immediately following the loop

19
New cards

return

Applies the valued result of a function to the function output - the value of the function call

20
New cards
21
New cards

try & except

Prevents your code from crashing during execution - execution handling

22
New cards

def

Keyword used to define a function

23
New cards

import

Imports a module of functions to use within the program

24
New cards

Float

Decimal value (e.g. 1.0)

25
New cards

Integer

Whole number value (e.g. 1)

26
New cards

String

Character value (e.g. ‘string’)

27
New cards

Boolean

True or False

28
New cards

None

None value

29
New cards

Container

A data holder (e.g. a list, a string)

30
New cards

oct()

Converts to octal

31
New cards

range()

Returns a specified sequence of #s

32
New cards

range syntax

range (start, stop, [steps])