WGU C859 PYTHON TEST UPDATE WITH COMPLETE SOLUTION
WGU C859 PYTHON TEST UPDATE WITH COMPLETE SOLUTION f1 = open("/my_path/my_", "r") - ANSWER- to open and read a file f1 = open("/my_path/my_", "w") - ANSWER- to open and write a file (all previous material discarded) f1 = open("/my_path/my_", "a") - ANSWER- to open and add to a file () - ANSWER- read a file into a string ("hello!") - ANSWER- writes to a file ine() - ANSWER- reads next line () - ANSWER- closes a file (must always close a file!) with open("/my_file...etc) as f: - ANSWER- opens, allows work, and automatically closes a file timedelta - ANSWER- time library function to calculate time amounts from datetime import timedelta - ANSWER- grabs timedelta from the datetime library import datetime as dt - ANSWER- imports a library as a specified variable ().month - ANSWER- to print current month (aka .day or .year for those
Geschreven voor
Documentinformatie
- Geüpload op
- 1 november 2023
- Aantal pagina's
- 5
- Geschreven in
- 2023/2024
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
- wgu c859 python test
-
wgu c859 python test update with comple
-
wgu c859 python test update