Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

WGU D522 WITH 50 QUESTIONS & CORRECT ANSWERS

Document preview thumbnail
Preview 2 out of 6 pages

WGU D522 WITH 50 QUESTIONS & CORRECT ANSWERS / WGU D522 WITH 50 QUESTIONS & CORRECT ANSWERS

Content preview

WGU D522 WITH 50 QUESTIONS & CORRECT
ANSWERS



title() - ANSWER-capitalizes first letter of each word


islower() - ANSWER-determines if the string consists of lowercase characters


count() - ANSWER-totals number of times an argument is found within a
predefined value


myNumbers = [1, 4.8, 7, 9.2, 3, 0] - ANSWER-creates a list


mylist[0] - ANSWER-accesses first element from a list


mylist[-1] - ANSWER-accesses last element from a list


mylist[1:3] - ANSWER-slices list including second and third element


mylist[:3] - ANSWER-slices list beginning with first element and including
through the third element. Index position 3 is not included in selection.


mylist[3:] - ANSWER-slices list beginning with fourth element and include
remainder of the list


sorted(listname, reverse=True) - ANSWER-returns copy of list ordered largest to
smallest

, append() - ANSWER-adds new value to end of list


pop() - ANSWER-removes last item from a list


pop(1) - ANSWER-removes second item from a list


join() - ANSWER-joins values from a list using a defined separator


open('/my_path/my_file.txt','r') - ANSWER-opens a file object for reading


open('/my_path/my_file.txt','w') - ANSWER-opens a file object for writing


read() - ANSWER-reads data from open file


close() - ANSWER-closes open file


write() - ANSWER-writes to open file


with open('/my_path/my_file.txt','r') as f: - ANSWER-opens a file, performs
operations and automatically closes file


r - ANSWER-read


w - ANSWER-write

Document information

Uploaded on
November 16, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$19.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NurseSue
3.8
(10)
Sold
66
Followers
4
Items
1214
Last sold
2 weeks ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions