UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit bc6fdb25 authored by Jeffrey Mathiowetz's avatar Jeffrey Mathiowetz
Browse files

gensite genslides

parent b97f58be
No related merge requests found
Pipeline #121426 passed with stages
in 1 minute and 37 seconds
......@@ -238,14 +238,15 @@ Instructor should DEMO wireshark using root/sudo, versus without and highlight t
**** socket.socket
**** or other "user-defined"
**** https://docs.python.org/3/library/functions.html[Built-In Examples]:
***** int()
***** len()
***** str()
***** sum()
***** print()
***** `int()`
***** `len()`
***** `str()`
***** `sum()`
***** `print()`
*** *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/stdtypes.html#methods[Built-In Examples]:
***** my_string.upper()
***** my_string.lower()
***** my_list.strip()
***** my_string.split()
***** my_list.replace()
***** my_list.count()
***** my_list.clear()
***** my_list.append()
***** my_list.insert()
**** https://docs.python.org/3/library/stdtypes.html#string-methods[Built-In String Method Examples]:
***** `my_string.upper()`
***** `my_string.lower()`
***** `my_list.strip()`
***** `my_string.split()`
***** `my_list.replace()`
***** `my_list.count()`
***** `my_list.clear()`
***** `my_list.append()`
***** `my_list.insert()`
*** 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).
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment