Python introduction Neetcode

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

1/9

flashcard set

Earn XP

Description and Tags

Python neetcode introduction flashcards

Last updated 4:57 PM on 6/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Who created python?

Guido van Rossum

2
New cards

Python is an _____ programming language

interpreted

3
New cards

What is an interpreted programming language?

An interpreted programming language is executed line by line by an interpreter. Can sometimes be slower than compiled languages.

4
New cards

Does Python execute code in a top down or bottom up way?

Python code is executed from the top down.

5
New cards

What is a string? How can a string be defined?

A string is a sequence of characters between the opening and closing quotes. Can be defined with single or double quotes.

6
New cards

How do you put quotation marks inside a string?

You can use single quotes for the string and double quotes for the quote or use a backslash before and after the quotation marks inside the string. print("They said, \"Hello, world!\"")

7
New cards

When does a syntax error occur?

Syntax errors occur when the code is not written correctly according to the rules of the programming language.

8
New cards

What is a runtime error?

Error that occurs while the program is running. Examples include divding by zero, type error, value error, index error

9
New cards

Logical error?

Program will run without crashing, however the output is not what the programmer intended. Like 1+1 should equal 2, but instead it equals 11 or 3 or some other wrong answer.

10
New cards

How do you add comments or comment out a line of code?

You add a comment by using the # character, any text after # is ignored by the interpreter. Can also put # in front of a line of code so it won’t execute next time the program is run.