Computer Science- Python

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

flashcard set

Earn XP

Description and Tags

Python syntax, algorithms for common first year B.Tech CSE questions and syntax of lists, tuples, dictionaries, range, for and while loop, function

Last updated 12:40 PM on 9/2/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

An ordered, mutable sequence of elements in Python defined using square brackets []

List

2
New cards

An ordered, immutable collection of elements in Python defined using parentheses ()

Tuple

3
New cards

An unordered, mutable collection of key-value pairs in Python defined using curly braces {}

Dictionary

4
New cards

Python built-in function used to generate an immutable sequence of integers from startstart up to, but not including, stopstop

range(start, stop, step)

5
New cards

Basic syntax structure of a for loop iterating over a collection in Python

for item in sequence: followed by an indented block of code.

6
New cards

Basic syntax structure of a conditional loop that continues executing as long as a expression evaluates to True

while condition: followed by an indented block of code.

7
New cards

Keyword and basic syntax used to define a user-created function in Python

def function_name(parameters):

8
New cards

Time complexity of computing the factorial of an integer nn using simple iteration

O(n)O(n)

9
New cards

Optimal upper limit loop condition when using trial division to test if an integer nn is prime

n\lfloor\sqrt{n}\rfloor

10
New cards

Prerequisite condition required on a list before executing a Binary Search algorithm

The list must be sorted in ascending or descending order.