Data types

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

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:04 AM on 4/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

4 Terms

1
New cards

Integers - float - complex

This data type is used to store numeric values. It creates a number object when a value is assigned to them

Example

var1 = 45 these can be deleted by using

var2 = 15 the command “del var1”

Numerical types -

Int / integers / any whole number

Float / any number that contains a decimal point

Complex / 3+4i / any complex numbers

2
New cards

Sequence - lists - tuples

List [] - a list is a type of data in python which can be written as comma separated values

var1 = [10,9,8,7] → int OR [10,”apple”,9,”banana” → list, str

Tuple () - an ordered collection of unchangeable collection of items

Colors = (“red”, “green”, “blue”) → tuple

3
New cards
<p>How to check data type of variable declared</p>

How to check data type of variable declared

By using the type () method or by using the isinstance() method.

4
New cards

T

T