def passengers():
''' Function to return dict '''
passenger_list = [{
"Name": "Passenger1", "Zipcodes": "Zipcode1"},
{"Name": "Passenger2", "Zipcodes": "Zipcode2"},
{"Name": "Passenger3", "Zipcodes": "Zipcode3"},]
return passenger_list
#return statement
def drivers():
"return driver_list"
#documentation string
driver_list = [{
"Name": "Driver1", "Zipcodes": "Zipcode1"},
{"Name": "Driver2", "Zipcodes": "Zipcode2"},
{"Name": "Driver3", "Zipcodes": "Zipcode3"},]
return driver_list
def match(
passenger
#make passenger as an argument to match
):
driver_list = drivers()
passenger_zipcode = passenger["Zipcodes"]
for driver in driver_list:
driverzipcode = driver["Zipcodes"]
if driverzipcode == passenger_zipcode:
#== bc test for equality
drivername = driver["Name"]
passengername = passenger["Name"]
return f"{drivername} = {passengername}"
#rememeber to format with f
def main ():
passenger_list = passengers()
#inside main method getting a list of passengers
passenger = passenger_list[1]
#takes first passenger out of the list and calls it passenger
message = match(passenger)
print (message)
main()
Author: @sydneylai You hear about NFTs as collectibles or images, but how do we store or collect them? Today we will build an NFT wallet and host them on IPFS as a unique NFT. We host the images in IPFS because this a peer to peer and a decentralized form of storage, rather than a centralized solution like AWS or Google Cloud. Therefore if AWS goes down or you forget to pay your Cloud subscription, you still have a hosting solution that assigned a unique identifier or content identifier (CID). Once you have a unique image, you can either distribute your NFTs on a marketplace, put it on a smart contract or turn it into a game. I'll include resources below for how else you can continue to build. This tutorial is for beginners who want to learn how to create and host their NFTs. Start Here :::info
Oct 22, 2021Author: @sydneylai You hear about NFTs as collectables or images, but how do we store or collect them? Today we will build an NFT wallet and host them on IPFS as a unique NFT. We host the images in IPFS because this a peer to peer and a decentralized form of storage, rather than a centralized solution like AWS or Google Cloud. Therefore if AWS goes down or you forget to pay your Cloud subscription, you still have a hosting solution that assigned a unique identifier or content identifier (CID). Once you have a unique image, you can either distribute your NFTs on a marketplace, put it on a smart contract or turn it into a game. I'll include resources below for how else you can continue to build. This tutorial is for beginners who want to learn how to create and host their NFTs. Start Here :::info
Oct 22, 2021Toronto June 20-23 1. Budget size 2. Attendee profile 3. Sponsorship, what do we get in package 4. virtual vs in-person 5. dates 6. activation piece
Oct 21, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up