WGU C859 Python Test 2023 wit complete solution
WGU C859 Python Test 2023 wit complete solution f1 = open("/my_path/my_", "r") - ANS to open and read a file f1 = open("/my_path/my_", "w") - ANS to open and write a file (all previous material discarded) f1 = open("/my_path/my_", "a") - ANS to open and add to a file () - ANS read a file into a string ("hello!") - ANS writes to a file ine() - ANS reads next line () - ANS closes a file (must always close a file!) with open("/my_file...etc) as f: - ANS opens, allows work, and automatically closes a file timedelta - ANS time library function to calculate time amounts from datetime import timedelta - ANS grabs timedelta from the datetime library import datetime as dt - ANS imports a library as a specified variable ().month - ANS to print current month (aka .day or .year for those) beautiful soup - ANS HTML parsing library NumPy - ANS scientific computing, matrices, array creation library pandas - ANS data manipulation and analysis library pillow (PIL) - ANS work with and manipulate images; python imaging library pyglet - ANS multimedia / gaming creation library pytz - ANS time zone data library
Documentinformatie
- Geüpload op
- 3 juli 2023
- Aantal pagina's
- 3
- Geschreven in
- 2022/2023
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden