subject

Hello PLS, HELP ME. so I wrote a code for Python and it's all correct but I have to connect it and I'm not sure how.
Pls actually help and not put a random answer.
adress = {}
def Update():
contact = input("Name: ")
info = input("What is the phone number/email: ")
adress[contact] = info

def Display():
for contact, info in adress. items():
print(contact)
print(info)

def Search():
who = input("Who do you want to search for?")
for contact, info in adress. items():
if who == contact:
print(info)

def Delete():
deletewho = ("Who do you want to delete? ")
for contact, info in adress. items():
if deletewho == contact:
del adress[deletewho]

def actions():
print("Address book to store friends contact")
print("-" * 40)
print("-" * 40)
print('''Select an option...
1 - Add/Update contact...
2 - Display all contacts...
3 - Search...
4 - Delete contact...
5 - Quit''')
actions()

ANSWER = int(input("What do you want to do"))
if ANSWER == 1:
print("Okay")
elif ANSWER == 2:
print("Okay")
elif ANSWER == 3:
print("Okay")
elif ANSWER == 4:
print("Okay")
elif ANSWER == 5:
print("Okay")

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 10:50, Leffew
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, jaelynnm
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
image
Computers and Technology, 24.06.2019 11:30, AnwarWeirdLol8811
Why is body language an important factor in a business meeting
Answers: 1
You know the right answer?
Hello PLS, HELP ME. so I wrote a code for Python and it's all correct but I have to connect it and...

Questions in other subjects:

Konu
English, 10.04.2020 21:32
Konu
Advanced Placement (AP), 10.04.2020 21:32
Konu
Mathematics, 10.04.2020 21:33