Back to marketplace

1 Introduction to Python (1)

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

1 What is Python?

Back (Answer)

A general-purpose programming language

#2
Front (Question)

2 What is Data Science?

Back (Answer)

An interdisciplinary field that uses scientific methods, processes, algorithms and systems to extract knowledge and insights from data

#3
Front (Question)

3 Data Science as an intersection of three fields. Which ones?

Back (Answer)

• Computer Science IT • Math and Statistics • Domains/Business Knowledge

#4
Front (Question)

4 What is an algorithm ?

Back (Answer)

A finite sequence of computer-implementable instructions

#5
Front (Question)

5 What is a Python script?

Back (Answer)

A collection of commands in a file designed to be executed like a program

#6
Front (Question)

6 What is a Shell?

Back (Answer)

A software program that interprets commands from the user so that the operating system can understand them and perform the appropriate functions. The shell is a command-line interface, which means it is solely text-based

#7
Front (Question)

7 Outcome of: print(10/2)

Back (Answer)

5

#8
Front (Question)

8 How to write exponentiation?

Back (Answer)

** 2**3=8

#9
Front (Question)

9 What does % Modulo?

Back (Answer)

Returns the remainder of a division 18 % 7 =5

#10
Front (Question)

10 What is a variable assignment

Back (Answer)

A name attached to a particular object variable_a= 18

#11
Front (Question)

11 Create a variable ‘savings’ with value 100 and print it

Back (Answer)

savings = 100 print(savings)

#12
Front (Question)

12 Write a script to compound these variables: savings =100 growth_multiplier = 1.1 t=1

Back (Answer)

result = savings*growth_multiplier**t result

#13
Front (Question)

13 What is type conversion?

Back (Answer)

An object from one data type to another data type

#14
Front (Question)

14 Outcome of: type(‘a’)

Back (Answer)

str

#15
Front (Question)

15 Outcome of: type(False)

Back (Answer)

bool

#16
Front (Question)

16 Outcome of: type(3)

Back (Answer)

int

#17
Front (Question)

17 Outcome of: type(3.3)

Back (Answer)

float

#18
Front (Question)

18 Complete code: ’'’savings = 100 result =savings*1.10**7 print(…) Outcome: I started with $100 and now I have 194.9

Back (Answer)

savings = 100 savings = 100 result = round(savings * 1.10**7,1) print('I started with $' + str(savings) \+ ' and now I have $' +str(result))

#19
Front (Question)

19 What is a list?

Back (Answer)

A data structure in Python that is a mutable, or changeable, ordered sequence of elements. Each element or value that is inside of a list is called an item. Lists are defined by having values between square brackets [ ]

#20
Front (Question)

20 Create a list called house with elements ‘room, kitchen’ #Outcome: ['room', 'kitchen']

Back (Answer)

house = [‘room’, ‘kitchen’] house

#21
Front (Question)

21 Can a list contain different types of data such as a string and a float?

Back (Answer)

Yes [1+2,’a’*5]

#22
Front (Question)

22 What is a list of lists or a multi-dimensional list?

Back (Answer)

A list inside a list (nested)

#23
Front (Question)

23 Use list a get this outcome: [[‘a’,’b’],’c’]

Back (Answer)

m_list=[[‘a’,’b’],’c’] m_list

#24
Front (Question)

24 What is subsetting?

Back (Answer)

The process of retrieving just the parts of large files