GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
*** *Methods* - is a piece of code or function that “belongs to” an object. It is a function that belongs to an object (such as a string, list, or custom class). Methods are called on objects and often work with the data inside the object.
**** https://docs.python.org/3/library/stdtypes.html#methods[What is a Method]
**** The method is implicitly used for an object for which it is called by using the `.`.
**** The method is accessible to data that is contained within the function/class.
**** Can create methods within the function or can call a 'built-in' method
...
...
@@ -253,16 +254,16 @@ Instructor should DEMO wireshark using root/sudo, versus without and highlight t
**** cannot be called to perform a task without calling the Class/Object it's associated with.
**** can be simple such as changing the case or printing test.
**** You can have methods to perform mathematical tasks like add, sub, multiply, or divide.
*** https://docs.python.org/3/library/exceptions.html[*Exceptions*] - An exception is a special condition encountered during program execution that is unexpected or anomalous. This will typically break your code with some sort of error. Typically you hear exception handling to manage issues such as:
...
...
@@ -272,18 +273,18 @@ Instructor should DEMO wireshark using root/sudo, versus without and highlight t
*** https://docs.python.org/3/library/constants.html[*Constants*] - A constant is a term used to describe data or a value that does not change in a specified amount of time, unlike a variable. Some examples include:
**** AF_INET - always represents ipv4 address family
**** AF_INET6 - always represents ipv6 address family
**** SOCK_STREAM - always represents a stream socket
**** SOCK_DGRAM - always represents a datagram socket
**** SOCK_RAW - always represents a raw socket
**** `AF_INET` - always represents ipv4 address family
**** `AF_INET6` - always represents ipv6 address family
**** `SOCK_STREAM` - always represents a stream socket
**** `SOCK_DGRAM` - always represents a datagram socket
**** `SOCK_RAW` - always represents a raw socket
*** *Objects* - a section of code used in object-oriented programming that can be used by other object modules or the program being created. Some objects in the socket function are:
**** socket.bind(address)
**** socket.connect(address)
**** socket.send(bytes[,flags])
**** socket.close()
**** `socket.bind(address)`
**** `socket.connect(address)`
**** `socket.send(bytes[,flags])`
**** `socket.close()`
*** *Python Collections (Arrays)* - There are four collection data types in the Python programming language:
...
...
@@ -331,10 +332,10 @@ Instructor should DEMO wireshark using root/sudo, versus without and highlight t
***** *string methods:*
str.capitalize()
str.casefold()
str.center(width[, fillchar])
str.count(sub[, start[, end]])
`str.capitalize()`
`str.casefold()`
`str.center(width[, fillchar])`
`str.count(sub[, start[, end]])`
**** *Sequence Type:*
***** https://docs.python.org/3/library/stdtypes.html#list[*list*] - Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).