Question

Questions 4 -7 are fill-in answers based on chapter 6 Dictionaries and the examples reviewed in...

Questions 4 -7 are fill-in answers based on chapter 6 Dictionaries and the examples reviewed in class:
Provide just the answers as comments; not the questions. The answer should demonstrate your knowledge of Python vocabulary and syntax.

4) What is the name of the programming language we are studying?

__________________________________

5) student = {‘name’ : ‘Phil’, ‘age’ : 20} student[‘age’] = 21
student[‘gpa’] = 3.5

After execution of the above 3 statements, how many items are in the dictionary?

___________________

6) student = {'name': 'John', 'major': 'CSIS', 'age': 20,'id': 40}

if 'name' not in student.keys():

print('this is confusing');

Will the if statement evaluate to true or false?

________________________________

7) Name three simple Python data types and name 2 complex Python data types.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
4)
the name of the programming language we are studying is Python
Answer:
Python


5)
student = {‘name’ : ‘Phil’, ‘age’ : 20} student[‘age’] = 21
student[‘gpa’] = 3.5
After execution of the above 3 statements,
Number of items are in the dictionary is 3
Answer:
3

6)
student = {'name': 'John', 'major': 'CSIS', 'age': 20,'id': 40}
if 'name' not in student.keys():
    print('this is confusing');
if statement evaluate to false
Answer:
false

7) 
three simple Python data types are int,float,str
2 complex Python data types are list, dict

Add a comment
Know the answer?
Add Answer to:
Questions 4 -7 are fill-in answers based on chapter 6 Dictionaries and the examples reviewed in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT