Dasar-Dasar Python 3.10

Authors

Maulana Malik Nashrullah, S.Si., Ph.D
Bioinformatics Research Center, INBIO Indonesia
Dr. Brian Rahardi, S.Si., M.Sc
Bioinformatics Research Center, INBIO Indonesia

Keywords:

Python 3.1, Dasar-Dasar Python

Synopsis

Buku ini merupakan pembaharuan dari buku Dasar - Dasar Python 3.8/3.9 dan menyajikan penjelasan yang praktis dan mendalam terkait aspek fundamental dari pemrograman Python dengan fokus pada lajur versi Python 3.10 seperti pokok-pokok primer Python, seleksi kondisi, perulangan, penanganan kesalahan, manipulasi string, tipe data terstruktur, file dan direktori, fungsi, object-oriented programming, regular expression, modul dan paket, hingga pembuatan paket secara andiri. Beberapa tips dan trik yang jarang iketahui juga dimasukkan sebagai penambah wawasan dan informasi di dalam buku ini. Supplementary material berupa kode dan tutorial tersedia secara terbuka dapat diakses melalui repositori Github https://github.com/biokomub/bukupython310.

Jumlah Halaman : 571

Ukuran Buku : A4

ISBN :978-623-98383-6-2

References

Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M.,

Kudlur, M., Levenberg, J., Monga, R., Moore, S., Murray, D.G., Steiner, B., Tucker, P.A., Vasudevan,

V., Warden, P., Wicke, M., Yu, Y., Zheng, X. 2016. TensorFlow: A System for Large-Scale Machine

Learning. Proceedings of the 12th USENIX Symposium on Operating Systems Design and

Implementation (OSDI 16); November 2-4, 2016; Savannah, Georgia, USA. pp. 265-283.

Abrol, I.P., Yadav, J.S.P., Massoud, F.I. 1988. Salt-Affected Soils and their Management. Food and

Agriculture Organizations. Rome. FAO Soils Bulletin No. 39.

Agarwal, M., Kumar, V., Singh, A. 2021. Class method vs Static method in Python. https://www.geeksforgeeks.org/class-method-vs-static-method-python/.

Aggarwal, N. 2019. __new__ in Python. https://www.geeksforgeeks.org/__new__-in-python/.

Angelico, C., Peters, T., Van Rossum, G. 2018. PEP 572 - Assignment Expressions. https://www.python.org/dev/peps/pep-0572/.

Asombo, P.L. 2020. Constructors in Python (__init vs __new__). https://dev.to/pila/constructors-inpython-init-vs-new-2f9j.

Bader, D. 2017. Python's Instance, Class, and Static Methods Demystified. https://realpython.com/instance-class-and-static-methods-demystified/.

Bader, D. 2018. Shallow vs Deep Copying of Python Objects. https://realpython.com/copying-pythonobjects/.

Bagheri, R. 2020. Understanding Python Bytecode: Learn about disassembling Python bytecode.

https://towardsdatascience.com/understanding-python-bytecode-e7edaae8734d.

Balai Penelitian Tanah. 2009. Analisis Kimia Tanah, Tanaman, Air, dan Pupuk. 2nd ed. Balai Penelitian

Tanah, Balai Besar Penelitian dan Pengembangan Sumber Daya Lahan Pertanian, Badan Penelitian dan Pengembangan Pertanian, Departemen Pertanian. Bogor.

Bhayani, A. 2020. Overload Functions in Python. https://www.codementor.io/@arpitbhayani/overloadfunctions-in-python-13e32ahzqt.

Bruinsma, W. 2021. plum-dispatch 1.5.4: Multiple dispatch in Python. https://pypi.org/project/plumdispatch/.

Cannon, B. 2015. PEP 488 - Elimination of PYO files. https://www.python.org/dev/peps/pep-0488/.

Cepalia, A. 2020. Scripts, Modules, Packages, and Libraries. https://realpython.com/lessons/scriptsmodules-packages-and-libraries/.

Chauhan, M. 2019. With Statement in Python. https://www.geeksforgeeks.org/with-statement-inpython/.

Cloud, P., Jevnik, J., van Niekerk, M., Rocklin, M. 2018. multipledispatch 0.6.0: Multiple Dispatch. https://pypi.org/project/multipledispatch/.

Coady, A. 2021. multimethod 1.5: Multiple argument dispatching. https://pypi.org/project/multimethod/.

Cui, Y. 2020. Why Bother Using Property Decorators in Python? https://betterprogramming.pub/whybother-using-property-decorators-in-python-935c425f86ed.

Dahl, O.-J., Myhrhaug, B., Nygaard, K. 1970. SIMULA Common Base Language. Norsk Regnesentral. Oslo, Norway. Publication No. S-22.

Deliwala, P. 2021. Is Python call by reference or call by value. https://www.geeksforgeeks.org/is-pythoncall-by-reference-or-call-by-value/.

Dubey, S.K. 2021. Method Overloading. https://www.geeksforgeeks.org/python-method-overloading/.

Eby, P.J. 2007. PEP 3124 - Overloading, Generic Functions, Interfaces, and Adaptation. https://www.python.org/dev/peps/pep-3124/

Eckel, B. 2017. Initialization and Cleanup. https://python-3-patterns-idiomstest.readthedocs.io/en/latest/InitializationAndCleanup.html.

Ekmekci, B., McAnany, C.E., Mura, C. 2016. An Introduction to Programming for Bioscientists: A PythonBased Primer. PLOS Computational Biology. 12(6). e1004867.

Gothe, A. 2020. Difference between Call by Value and Call by Reference.

https://www.geeksforgeeks.org/difference-between-call-by-value-and-call-by-reference/.

Harris, C.R., Millman, K.J., van der Walt, S.J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor,

J., Berg, S., Smith, N.J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M.H., Brett, M., Haldane, A.,

del Río, J.F., Wiebe, M., Peterson, P., Gérard-Marchant, P., Sheppard, K., Reddy, T., Weckesser,

W., Abbasi, H., Gohlke, C., Oliphant, T.E. 2020. Array programming with NumPy. Nature.

(7825). 357-362.

Heaton, R. 2014. Is Python pass-by-reference or pass-by-value? https://robertheaton.com/2014/02/09/pythons-pass-by-object-reference-as-explained-byphilip-k-dick/.

Hjelle, G.A. 2021. Python 3.10: Cool New Features for You to Try.

Kider, J., Wiegand, P. 2018. Python Lists vs. Numpy Arrays - What is the difference?

https://webcourses.ucf.edu/courses/1249560/pages/python-lists-vs-numpy-arrays-what-is-thedifference?module_item_id=10959918.

Kleene, S.C. 1951. Representation of Events in Nerve Nets and Finite Automata. RAND Corporation. Santa

Monica, California, USA. Research Memoranda No. RM-704.

Kluyver, T., Ragan-Kelley, B., Pérez, F., Granger, B., Bussonnier, M., Frederic, J., Kelley, K., Hamrick, J.,

Grout, J., Corlay, S., Ivanov, P., Avila, D., Abdalla, S., Willing, C., Jupyter Development Team. 2016.

Jupyter Notebooks – a publishing format for reproducible computational workflows.

Proceedings of the 20th International Conference on Electronic Publishing June 7-9, 2016; University of Göttingen, Germany pp. 87-90.

Kothari, V. 2020a. Constructors in Python. https://www.geeksforgeeks.org/constructors-in-python/.

Kothari, V. 2020b. Destructors in Python. https://www.geeksforgeeks.org/destructors-in-python/.

Kreen, M. 2020. rarfile 4.0: RAR archive reader for Python. https://pypi.org/project/rarfile/.

Kumar, B. 2021. Python pass by reference or value with examples. https://pythonguides.com/pythonpass-by-reference-or-value/.

Kumar, R. 2020. Pass by reference vs value in Python. https://www.geeksforgeeks.org/pass-byreference-vs-value-in-python/.

Langa, L. 2019. PEP 602 - Annual Release Cycle for Python. https://www.python.org/dev/peps/pep-

/.

Latracal. 2021. [Best] Ways to Delete a File in Python. https://www.pythonpool.com/python-delete-file/.

Lehtosalo, J. 2021. Mypy Documentation, Release 0.910. https://mypy.readthedocs.io/_/downloads/en/stable/pdf/.

Lehtosalo, J., Levkivskyi, I., Hance, J., Smith, E., van Rossum, G., Zijlstra, J., Sullivan, M.J., Jain, S., Yang, X.,

Ye, J., Sobolev, N. 2022. Mypy: Optional static type checker for Python. http://mypylang.org/index.html.

Liskov, B., Atkinson, R., Bloom, T., Moss, E., Schaffert, J.C., Scheifler, R., Snyder, A. 1979. CLU Reference

Manual. Laboratory for Computer Science, Massachusetts Institute of Technology. Cambridge,

Massachusetts, USA. Technical Report No. MIT/LCS/TR-225.

Manitoba Agriculture Food and Rural Initiatives (MAFRI). 2008. Soil Management Guide. 2nd ed.

Manitoba Agriculture, Food, and Rural Initiatives, Manitoba Ministry of Agriculture. Winnipeg, Manitoba, Canada.

McKinney, W. 2010. Data Structures for Statistical Computing in Python. Proceedings of the 9th Python in Science Conference (SCIPY 2010); Austin, Texas, USA. pp. 51-56.

Mishra, R. 2020. Understanding Object Instantiation and Metaclasses in Python.

https://www.honeybadger.io/blog/python-instantiation-metaclass/#override-the-__new__-

method.

Miura, H., Bauch, J., Fujioka, K., Altendorf, K., Lancioni, F., Prado, R., Zoynels, Py7zr Contributors. 2021.

py7zr 0.16.1: Pure python 7-zip library. https://pypi.org/project/py7zr/.

Montalenti, A. 2013. Functional dynamic dispatch with Python’s new singledispatch decorator in

functools. https://amontalenti.com/2013/10/20/singledispatch.

Nashrulloh, M.M. 2018. The Effects of Bacteria Inoculum Application in Improving Rice Grain Yield: A

Technical Report Submitted for Reporting the Completion of Mini Project in Course of BIT 761

(Special Topic II: EFFECTS OF ADDING MICROORGANISMS ON RICE PRODUCTIVITY) Remediation

Laboratory, King Mongkut University of Technology Thonburi. Bangkok.

National Research Council. 2009. A New Biology for the 21st Century. The National Academies Press.

Washington, DC.

Negi, M.S. 2018. Dunder or magic methods in Python. https://www.geeksforgeeks.org/dunder-magicmethods-python/.

Newbedev. 2021. `final` keyword equivalent for variables in Python? https://newbedev.com/finalkeyword-equivalent-for-variables-in-python.

Page, D. 2009. A Practical Introduction to Computer Architecture. Springer-Verlag London. London.

Pearce, J.L., Miller, B.N. 2019. 5.6. Unordered Sets. in: C++ for Python Programmers. (Eds.) J.L. Pearce,

B.N. Miller. Runestone Academy. Decorah, Iowa, USA.

Peters, T. 2004. PEP 20 - The Zen of Python. https://www.python.org/dev/peps/pep-0020/.

Phillips, D. 2018. Python 3 Object-Oriented Programming: Build Robust and Maintainable Software With

Object-Oriented Design Patterns in Python 3.8. Packt Publishing. Birmingham, UK.

Pitrou, A. 2012a. pathlib: Object-oriented filesystem paths. https://pathlib.readthedocs.io/en/pep428/.

Pitrou, A. 2012b. PEP 428 - The pathlib module -- object-oriented filesystem paths. https://www.python.org/dev/peps/pep-0428/.

Radhakrishna, B. 2021. Operator Overloading in Python. https://www.geeksforgeeks.org/operatoroverloading-in-python/.

Raharjo, B. 2015. Mudah Belajar Python Untuk Aplikasi Dekstop Dan Web. Penerbit Informatika. Bandung.

Ramos, L.P. 2021. Build a Python Directory Tree Generator for the Command Line. https://realpython.com/directory-tree-generator-python/.

Ramos, L.P. 2020. The Python return Statement: Usage and Best Practices. https://realpython.com/python-return-statement/.

Robinson, S. 2017. Python's @classmethod and @staticmethod Explained. https://stackabuse.com/pythons-classmethod-and-staticmethod-explained/.

Roethlisberger, D. 2019. acefile 0.6.12: Read/test/extract ACE 1.0 and 2.0 archives in pure python.

https://pypi.org/project/acefile/.

Seabold, S., Perktold, J. 2010. statsmodels: Econometric and statistical modeling with python.

Proceedings of the 9th Python in Science Conference (SCIPY 2010); Austin, Texas, USA. pp. 92-96.

Senetar, A., Dupras, V. 2021. Send2Trash 1.7.1: Send file to trash natively under Mac OS X, Windows and Linux. https://pypi.org/project/Send2Trash/.

Shah, N., Zaveri, S., Kumar, R.S.L. 2020. What does the if __name__ == “__main__”: do? https://www.geeksforgeeks.org/what-does-the-if-__name__-__main__-do/.

Shankar, R. 2021. Float vs Double. https://hackr.io/blog/float-vs-double.

Siriwardana, S. 2021. If-Else or Switch-Case: Which One to Pick? https://dev.to/sumusiriwardana/if-elseor-switch-case-which-one-to-pick-4p3h.

Smith, E.V. 2012. PEP 420 - Implicit Namespace Packages. https://www.python.org/dev/peps/pep-0420/

Smith, E.V. 2015. PEP 498 - Literal String Interpolation. https://www.python.org/dev/peps/pep-0498/.

Smith, N.J., Stufft, D. 2018. PEP 8016 - The Steering Council Model. https://www.python.org/dev/peps/pep-8016/.

Sobolev, N. 2019. final-class 0.2.0: Final classes for Python 3. https://pypi.org/project/final-class/.

Sprague, A. 2013. Power in Python’s Hidden New. https://www.concentricsky.com/articles/detail/pythons-hidden-new.

Spreitzenbarth, M., Uhrmann, J. 2015. Mastering Python Forensics. Packt Publishing. Birmingham, UK.

Sturtz, J. 2018. Basic Data Types in Python. https://realpython.com/python-data-types/.

Sullivan, M.J., Levkivskyi, I. 2019. PEP 591 - Adding a final qualifier to typing. https://www.python.org/dev/peps/pep-0591/.

Talin. 2006. PEP 3101 - Advanced String Formatting. https://www.python.org/dev/peps/pep-3101/.

Tanenbaum, A.S., Bos, H. 2015. Modern Operating System. 4th ed. Pearson Education Inc. Upper Saddle River, New Jersey, USA.

Tao, Y. 2019. secure_delete 0.0.2: A tool for safely delete files. https://pypi.org/project/secure-delete/.

Tas, S. 2020. Memory Management And Garbage Collection In Python. https://towardsdatascience.com/memory-management-and-garbage-collection-in-pythonc1cb51d1612c.

Thai Ministry of Commerce. 2018. Thailand Standards for Rice. Department of Foreign Trade, Thai Ministry of Commerce. Bang Kraso, Muang Nonthaburi, Nonthaburi.

The Python Core Team and Community. 2018. PEP 13 - Python Language Governance. https://www.python.org/dev/peps/pep-0013/.

Trivedi, U. 2021. Unordered Sets in C++ Standard Template Library. https://www.geeksforgeeks.org/unordered_set-in-cpp-stl/.

Tuteja, B. 2020. PVM (Python Virtual Machine). https://www.c-sharpcorner.com/blogs/pvmpythonvirtual-machine.

Van Rossum, G. 1995a. Extending and Embedding the Python Interpreter. Centrum voor Wiskunde en Informatica. Amsterdam, Netherlands. CWI Report No. CS-R9527.

Van Rossum, G. 1995b. Python Library Reference. Centrum voor Wiskunde en Informatica. Amsterdam, Netherlands. CWI Report No. CS-R9524.

Van Rossum, G. 1995c. Python Reference Manual. Centrum voor Wiskunde en Informatica. Amsterdam, Netherlands. CWI Report No. CS-R9525.

Van Rossum, G. 1995d. Python Tutorial. Centrum voor Wiskunde en Informatica. Amsterdam, Netherlands. CWI Report No. CS-R9526.

Van Rossum, G. 2018. Transfer of power. https://mail.python.org/pipermail/python-committers/2018-July/005664.html.

Van Rossum, G., De Boer, J. 1991. Interactively testing remote servers using the Python programming language. CWI Quarterly. 4(4). 283-304.

Van Rossum, G., Warsaw, B., Coghlan, N. 2001. PEP 8 - Style Guide of Python. https://www.python.org/dev/peps/pep-0008/.

Warsaw, B. 2011. PEP 404 - Python 2.8 Un-release Schedule. https://www.python.org/dev/peps/pep-0404/.

Warsaw, B. 2009. PEP 3147 - PYC Repository Directories. https://www.python.org/dev/peps/pep-3147/.

Warsaw, B. 2018. PEP 8000 - Python Language Governance Proposal Overview. https://www.python.org/dev/peps/pep-8000/.

Welch, L., Lewitter, F., Schwartz, R., Brooksbank, C., Radivojac, P., Gaeta, B., Schneider, M.V. 2014.

Bioinformatics Curriculum Guidelines: Toward a Definition of Core Competencies. PLOS Computational Biology. 10(3). e1003496.

Yodthong, S., Stuart, B.L., Aowphol, A. 2019. Species delimitation of crab-eating frogs (Fejervarya cancrivora complex) clarifies taxonomy and geographic distributions in mainland Southeast

Asia. ZooKeys. 883. 119-153.

Dasar-Dasar Python 3.10

Downloads

Published

27 January 2023

License

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.