




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive overview of the fundamental concepts and operators in python programming language. It covers a wide range of topics, including data types, operators, control structures, functions, and file handling. Structured in a question-and-answer format, with each question accompanied by the correct answer, making it an excellent resource for individuals preparing for a python certification exam or looking to solidify their understanding of the language. The content is well-organized and covers a diverse range of python-related topics, making it a valuable study guide for both beginners and experienced programmers. Whether you're a university student, a high school student, or a lifelong learner, this document can serve as a valuable resource to enhance your python programming skills and knowledge.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Boolean - correct answer ✔✔A single value of either TRUE or FALSE ** - correct answer ✔✔Exponent
| - correct answer ✔✔Bitwise Or operator << - correct answer ✔✔Shifts each bit left n bits
- correct answer ✔✔Shifts each bit right n bits
- correct answer ✔✔Greater than = - correct answer ✔✔greater than or equal to not - correct answer ✔✔not (normal evaluation) and - correct answer ✔✔and (normal evaluation) or - correct answer ✔✔or (normal evaluation)
continue - correct answer ✔✔moves onto the next condition/ iteration of the loop upper() - correct answer ✔✔converts text to all caps lower() - correct answer ✔✔converts text to all lowercase isxxx() - correct answer ✔✔blank method that allows you to fill in the conditionals while-else - correct answer ✔✔performs one (set of) action during a given condition and then performs another when the condition is no longer met for-else - correct answer ✔✔performs one (set of) action during a given condition and then performs another when the condition is no longer met in - correct answer ✔✔looks to see if something is in the given range len() - correct answer ✔✔Returns the number of characters in a text string or the length of a list capitalize() - correct answer ✔✔Makes the string title case split() - correct answer ✔✔splits the string on a given character join() - correct answer ✔✔Joins all elements of an array into a string sorted() - correct answer ✔✔sorts a list and produces a new one insert() - correct answer ✔✔places an element into a specific place in a list
chr() - correct answer ✔✔Finds a specific character based on unicode ord() - correct answer ✔✔produces Unicode based on a character index() - correct answer ✔✔finds the index of an element del - correct answer ✔✔removes an item from a list Keywords - correct answer ✔✔terms that are already used or defined and as such can not be used for variable names keys() - correct answer ✔✔Calls all keys from a dictionary items() - correct answer ✔✔Calls all key-item pairs from a dictionary values() - correct answer ✔✔Calls all values from a dictionary return - correct answer ✔✔Returns a values or list of values yield - correct answer ✔✔Returns a generator None - correct answer ✔✔Built in constant for a lack of data list() - correct answer ✔✔Creates a list global - correct answer ✔✔Calls global variables for use in local scope. Prevents issues with variable names. Lambda Functions - correct answer ✔✔Functions inside others that use stand in variables
bases - correct answer ✔✔The tuple base classes of a class object hasattr() - correct answer ✔✔Return True if the name is one of the object's attributes. issubclass() - correct answer ✔✔Checks to see if a class is a subclass of an additional given class isinstance() - correct answer ✔✔Checks to see if an object is an instance of a given class super() - correct answer ✔✔Returns a proxy class which delegates methods to either a parent or sibling class try - correct answer ✔✔Makes an attempt to perform an action except - correct answer ✔✔Allows code to proceed given a set of predetermined failures/errors else (try) - correct answer ✔✔If the action fails run this code instead finally - correct answer ✔✔If all previous code fails, run this code instead open() - correct answer ✔✔Open a file raise - correct answer ✔✔Produces an exception under given conditions except-as - correct answer ✔✔Allows the programmer to control the way in which errors are displayed to the user read() - correct answer ✔✔Read a given file
write() - correct answer ✔✔Write a file close() - correct answer ✔✔Close the connection between the program and the file. Prevents data loss int he process. readinto() - correct answer ✔✔Reads bytes into a writable, pre-allocated, object. readline() - correct answer ✔✔Reads just one line of a text file.