Deck 1: Variables and Types

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/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:25 PM on 8/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

What does gene_count = 3000 actually do in Python?

  • Creates a label ("variable") pointing at the value 3000 in memory

    • It doesn't create a permanent container with that name baked in, just an assignment.

2
New cards

Does normalized = expression_level * 100 change expression_level?

No → it computes a new value and assigns it to normalized; expression_level stays unchanged.

3
New cards

What type is 3000?

int (whole number, no decimal)

4
New cards

What type is 0.87?

float (decimal number)

5
New cards

What type is 'BRCA1'?

string (text, in quotes)

6
New cards

How does Python decide a value's type?

By how it's written — no decimal point → int; decimal point → float; quotes → string.