8. interactive shell word beautiful 9. birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'} while True: print('Enter a name: (blank to quit)') name = input () if name == >>; break if name in birthdays: print (birthdays [name] + is the birthday of + name)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I need help with questions 7-10. Those 3 questions, I need the answers for them. 7, 8, 9, 10. Please if not only do 8, 9 and 10. But please could you do 7 also.

2:00 AM Fri Oct 21
B C Sign Up [C] 2: Which of t...
5 of 6
AA1-prod-fleet02-xythos.content.blackboardcdn.com
8. interactive shell
word=beautiful
9.
Animals = ['cat', 'bat', 'rat', 'elephant']
Animals [1] = 'rabbit'
Animals
birthdays
while True:
=
: ܝ ܝ
print('Enter a name: (blank to quit)')
name input ()
if name ==
{'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
problem 3 w... Bb Schedule &...
break
if name in birthdays:
print (birthdays [name] + ' is the birthday of ' + name)
...
=
else:
print('I do not have birthday information for ' + name)
print('What is their birthday?')
bday input ()
birthdays [name]
bday
print('Birthday database updated.')
10.
spam =
for v in spam. values():
print (v)
{'color': 'red', 'age': 42}
for k in spam.keys ():
print (k)
1
for i in spam.items():
print (i)
X
learn-us-eas... 1-us-eas...
65%
+88
ork H...
Transcribed Image Text:2:00 AM Fri Oct 21 B C Sign Up [C] 2: Which of t... 5 of 6 AA1-prod-fleet02-xythos.content.blackboardcdn.com 8. interactive shell word=beautiful 9. Animals = ['cat', 'bat', 'rat', 'elephant'] Animals [1] = 'rabbit' Animals birthdays while True: = : ܝ ܝ print('Enter a name: (blank to quit)') name input () if name == {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'} problem 3 w... Bb Schedule &... break if name in birthdays: print (birthdays [name] + ' is the birthday of ' + name) ... = else: print('I do not have birthday information for ' + name) print('What is their birthday?') bday input () birthdays [name] bday print('Birthday database updated.') 10. spam = for v in spam. values(): print (v) {'color': 'red', 'age': 42} for k in spam.keys (): print (k) 1 for i in spam.items(): print (i) X learn-us-eas... 1-us-eas... 65% +88 ork H...
2:00 AM Fri Oct 21
5 of 6
1.
2.
3.
import random
Animals= ['dog', 'Cat', 'Lions', 'cow', 'elephant' ]
random.choice (pets)
Animals.sort (reverse=True)
4.
learn-us-east-1-prod-fleet02-xythos.content.blackboardcdn.com - Private
Animals.remove('Cat')
5.
Run the following codes and find the outputs:
Animals.reverse()
import random
Set your own Example.
6.
import copy
letter = ['m', 'n', 'o', 'p']
id(letter)
9.
8. interactive shell
word=beautiful
7.
Animals = ['cat', 'bat', 'rat', 'elephant']
Animals [1]
= 'rabbit'
Animals
●●●
birthdays
while True:
Section 2
=
==
{'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
print('Enter a name: (blank to quit)')
name input ()
if name
: ܝ ܝ
break
if name in birthdays:
print (birthdays [name] + is the birthday of '
1
+ name,
65%
Transcribed Image Text:2:00 AM Fri Oct 21 5 of 6 1. 2. 3. import random Animals= ['dog', 'Cat', 'Lions', 'cow', 'elephant' ] random.choice (pets) Animals.sort (reverse=True) 4. learn-us-east-1-prod-fleet02-xythos.content.blackboardcdn.com - Private Animals.remove('Cat') 5. Run the following codes and find the outputs: Animals.reverse() import random Set your own Example. 6. import copy letter = ['m', 'n', 'o', 'p'] id(letter) 9. 8. interactive shell word=beautiful 7. Animals = ['cat', 'bat', 'rat', 'elephant'] Animals [1] = 'rabbit' Animals ●●● birthdays while True: Section 2 = == {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'} print('Enter a name: (blank to quit)') name input () if name : ܝ ܝ break if name in birthdays: print (birthdays [name] + is the birthday of ' 1 + name, 65%
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY