subject

Write a for loop to print each contact in contact_emails. Sample output for the given program:

[email protected] is Mike Filt
[email protected] is Sue Reyn
[email protected] is Nate Arty
Code:

contact_emails = {
'Sue Reyn' : '[email protected]',
'Mike Filt': '[email protected]',
'Nate Arty': '[email protected]'
}

for email in contact_emails:
print('%s is %s' % (email, contact_emails(email)))

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
You know the right answer?
Write a for loop to print each contact in contact_emails. Sample output for the given program:
...
Questions
question
English, 10.11.2020 21:00
question
Chemistry, 10.11.2020 21:00
question
Health, 10.11.2020 21:00
question
History, 10.11.2020 21:00
question
Spanish, 10.11.2020 21:00
Questions on the website: 13722360