All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Study Help
New
Search
Search
Sign In
Register
study help
computer science
automate the boring stuff with python
Questions and Answers of
Automate the Boring Stuff with Python
How can you trigger PyAutoGUI’s fail safe to stop a program?
How can you find out the width and height of an Image object’s image?
What method would you call to get Image object for a 100×100 image, excluding the lower left quarter of it?
After making changes to an Image object, how could you save it as an image file?
What module contains Pillow’s shape-drawing code?
Image objects do not have drawing methods. What kind of object does? ow do you get this kind of object?
What function returns the current resolution()?
What function returns the coordinates for the mouse cursor’s current position?
What is the difference between pyautogui.moveTo() and pyautogui.moveRel()?
What functions can be used to drag the mouse?
What function call will type out the characters of "Hello world!"?
How can you do keypresses for special keys such as the keyboard’s left arrow key?
How can you save the current contents of the screen to an image file named screenshot.png?
What code would set a two second pause after every PyAutoGUI function call?
What is the difference between shutil.copy() and shutil.copytree()?
What function is used to rename files?
What is the difference between the delete functions in the send2trash and shutil modules?
ZipFile objects have a close() method just like File objects’ close() method. What ZipFile method is equivalent to File objects’ open() method?
Write an assert statement that triggers an Assertion Error if the variable spam is an integer less than 10.
Write an assert statement that triggers an Assertion Error if the variables eggs and bacon contain strings that are the same as each other, even if their cases are different (that is, 'hello' and
Write an assert statement that always triggers an AssertionError.
What are the two lines that your program must have in order to be able to call logging.debug()?
What are the two lines that your program must have in order to have logging.debug() send a logging message to a file named programLog.txt?
What are the five logging levels?
What line of code can you add to disable all logging messages in your program?
Why is using logging messages better than using print() to display the same message?
What are the differences between the Step, Over, and Out buttons in the Debug Control window?
After you click Go in the Debug Control window, when will the debugger stop?
What is a breakpoint?
How do you set a breakpoint on a line of code in IDLE?
Briefly describe the differences between the webbrowser, requests, BeautifulSoup, and selenium modules.
What type of object is returned by requests.get()? How can you access the downloaded content as a string value?
What Requests method checks that the download worked?
How can you get the HTTP status code of a Requests response?
How do you save a Requests response to a file?
What is the keyboard shortcut for opening a browser’s developer tools?
How can you view (in the developer tools) the HTML of a specific element on a web page?
What is the CSS selector string that would find the element with an id attribute of main?
What is the CSS selector string that would find the elements with a CSS class of highlight?
What is the CSS selector string that would find all the elements inside another element?
What is the CSS selector string that would find the element with a value attribute set to favorite?
Say you have a Beautiful Soup Tag object stored in the variable spam for the elementHello world!. How could you get a string 'Hello world!' from the Tag object?
How would you store all the attributes of a Beautiful Soup Tag object in a variable named linkElem?
Running import selenium doesn’t work. How do you properly import the selenium module?
What’s the difference between the find_element_* and find_elements_* methods?
What methods do Selenium’s WebElement objects have for simulating mouse clicks and keyboard keys?
You could call send_keys(Keys.ENTER) on the Submit button’s WebElement object, but what is an easier way to submit a form with Selenium?
How can you simulate clicking a browser’s Forward, Back, and Refresh buttons with Selenium?
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.What does
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.What does
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.What do
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.If you
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.If you
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How can
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How do you
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.If you
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.How would
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.Name a few
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.What is a
For the following questions, imagine you have a Workbook object in the variable wb, a Worksheet object in sheet, a Cell object in cell, a Comment object in comm, and an Image object in img.What five
A string value of the PDF filename is not passed to the PyPDF2.PdfFileReader() function. What do you pass to the function instead?
What modes do the File objects for PdfFileReader() and PdfFileWriter() need to be opened in?
How do you acquire a Page object for page 5 from a PdfFileReader object?
What PdfFileReader variable stores the number of pages in the PDF document?
If a PdfFileReader object’s PDF is encrypted with the password swordfish, what must you do before you can obtain Page objects from it?
What methods do you use to rotate a page?
What method returns a Document object for a file named demo.docx?
What is the difference between a Paragraph object and a Run object?
How do you obtain a list of Paragraph objects for a Document object that’s stored in a variable named doc?
What type of object has bold, underline, italic, strike, and outline variables?
What is the difference between setting the bold variable to True, False, or None?
How do you create a Document object for a new Word document?
How do you add a paragraph with the text 'Hello there!' to a Document object stored in a variable named doc?
What integers represent the levels of headings available in Word documents?
What are some features Excel spreadsheets have that CSV spreadsheets don’t?
What do you pass to csv.reader() and csv.writer() to create Reader and Writer objects?
What modes do File objects for reader and Writer objects need to be opened in?
What method takes a list argument and writes it to a CSV file?
What do the delimiter and lineterminator keyword arguments do?
What function takes a string of JSON data and returns a Python data structure?
What function takes a Python data structure and returns a string of JSON data?
What is the Unix epoch?
What function returns the number of seconds since the Unix epoch?
How can you pause your program for exactly 5 seconds?
What does the round() function return?
What is the difference between a datetime object and a timedelta object?
Say you have a function named spam(). How can you call this function and run the code inside it in a separate thread?
What should you do to avoid concurrency issues with multiple threads?
How can you have your Python program run the calc.exe program located in the C:\Windows\System32 folder?
What is the protocol for sending email? For checking and receiving email?
What four smtplib functions/methods must you call to log in to an SMTP server?
What two imapclient functions/methods must you call to log in to an IMAP server?
What kind of argument do you pass to imapObj.search()?
Showing 1 - 100
of 207
1
2
3