Lesson 4 - Week 4: Python Structures Flashcards
(11 cards)
Break
A special keyword in Python specifically designed for loops. If placed inside of a loop, it will immediately terminate the loop.
Continue
A Python keyword designed for loops. When Python reaches the continue keyword, it stops the code and goes back to the beginning of the loop.
input()
A built-in function that allows user input.
print()
A function used to display information to a user or to a developer.
list
A type of container in Python used to store multiple data sets at the same time.
append
A method to add a new element to the end of a list.
zip()
A function that takes iterables, aggregates them in a tuple, and returns.
set
An unordered collection of objects that is iterable, mutable, and has no duplicate elements.
index
A numerical representation of where each character is located.
slice
A subset of a string or other element.
len()
A function that returns the number of items in an object. When the object is a string, it returns the number of characters in the string.