Unit 11
Starter Code
import random
print("Unit 11")
myName = "" # add your name
print("Name: " + myName)
def main():
done = False
print("Main Menu")
print("E1 - Example 1")
print("Q - Quit")
while not done:
choice = input("Choice: ")
match choice:
# case for Example 1
case "E1":
example1()
# case for Example 2
case "E2":
example2()
# case for Example 3
case "E3":
example3()
# case for Example 4
case "E4":
example4()
# case for Example 5
case "E5":
example5()
# case for Example 6
case "E6":
example6()
# case for Example 7
case "E7":
example7()
# case for Quit
case "Q":
print("Quitting!")
done = True
# default case
case _:
print("Invalid, try again!")
# define Example 1 Function
def example1():
print("Example 1")
# define Example 2 Function
def example2():
print("Example 2")
# define Example 3 Function
def example3():
print("Example 3")
# define Example 4 Function
def example4():
print("Example 4")
# define Example 5 Function
def example5():
print("Example 5")
# define Example 6 Function
def example6():
print("Example 6")
# define Example 7 Function
def example7():
print("Example 7")
# call to main function, do not delete!
main()
apple.csv
Date,ProductID,ProductName,Quantity,Price
2023-01-01,1001,iPhone 13,2,799.0
2023-01-02,1002,iPad Air,5,599.0
2023-01-03,1003,MacBook Air,3,999.0
2023-01-04,1004,Apple Watch Series 7,4,399.0
2023-01-05,1005,AirPods Pro,6,249.0
2023-01-06,1006,Mac mini,1,699.0
2023-01-07,1007,iMac,2,1299.0
2023-01-08,1008,Apple TV 4K,3,179.0
2023-01-09,1009,Magic Keyboard,5,99.0
2023-01-10,1010,Magic Mouse,2,79.0
cswords.txt
algorithm
array
binary
bit
boolean
buffer
byte
cache
class
client
cloud
cluster
code
compile
compiler
computing
data
database
debug
decimal
decode
decompile
decrypt
digital
disk
DNS
domain
driver
dynamic
email
encryption
engine
ethernet
execute
file
firewall
firmware
function
gateway
gigabyte
graphics
hardware
hash
host
HTML
HTTP
hyperlink
IDE
index
information
inheritance
input
interface
internet
iteration
Java
JavaScript
kernel
key
keyword
loop
machine
macro
malware
memory
module
network
node
object
OS
packet
password
path
pixel
platform
port
processor
program
protocol
Python
query
queue
RAM
ROM
root
router
script
server
socket
software
source
SQL
SSL
storage
string
syntax
system
table
tag
TCP
thread
token
URL
user
variable
vector
virtual
virus
web
widget
XML
Last updated