WGU C859 PYTHON EXAM 50+ QUESTIONS AND ANSWERS COMPLETED 2023.
WGU C859 PYTHON EXAM 50+ QUESTIONS AND ANSWERS COMPLETED 2023. 1. f1 = open("/my_path/my_", "r"): to open and read a file 2. f1 = open("/my_path/my_", "w"): to open and write a file (all previous material discarded) 3. f1 = open("/my_path/my_", "a"): to open and add to a file 4. (): read a file into a string 5. ("hello!"): writes to a file 6. ine(): reads next line 7. (): closes a file (must always close a file!) 8. with open("/my_file...etc) as f:: opens, allows work, and automatically closes a file 9. timedelta: time library function to calculate time amounts 10. from datetime import timedelta: grabs timedelta from the datetime library 11. import datetime as dt: imports a library as a specified variable 12. ().month: to print current month (aka .day or .year for those) 13. beautiful soup: HTML parsing library 14. NumPy: scientific computing, matrices, array creation library 15. pandas: data manipulation and analysis library 16. pillow (PIL): work with and manipulate images; python imaging library 17. pyglet: multimedia / gaming creation library 18. pytz: time zone data library 19. pip install ____________ import _______________: to install and import a library into your code 20. (): round down (4.5 = 4, 4.8 = 4, 4.1 = 4, 4.9 = 4) 21. (): round up (4.6 = 5, 4.7 = 5, 4.1 = 5, 4.2 = 5) 22. (): get today's date 23. .(1967, 9, 7) print(ime("%A")): gets the d
Written for
- Institution
-
Western Governors University
- Course
-
C859
Document information
- Uploaded on
- July 7, 2023
- Number of pages
- 22
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
wgu c859 python exam 50 questions and answers com