1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
irinina [24]
4 years ago
5

Which of these are correctly formatted Python dictionaries? Check all that apply. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’

: ‘ABC School’}; dict = (‘Name’: ‘Mary’, ‘Age’: 13, ‘School’: ‘XYZ School’) dict = [“Programming Basics”, “Introduction to Python”] dict = {‘season’: ‘fall’, ‘weather’: ‘cool’}; dict = ’[‘laptop’, ‘computer’, ‘hard drive’]
Computers and Technology
2 answers:
Advocard [28]4 years ago
7 0

Answer:

A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}

Explanation:

Since <em>python does not use type when declaring a variable</em>, you must make sure you make your variables correctly or else it won't compile correctly. Lists use braces[]; Strings use quotes, "" or ''; Integers are just declared with a number(s); Dictionaries use brackets{} and inside are <u>attributes of something</u>. For instance, you can use dictionaries to describe ages, {'"Bryan": 6, "Alex": 13, etc.} <u>Sort of like a json file</u>. Dictionaries also tend to use <u>uppercase letters</u> when describing something. The only answer that has all the attributes correct is A. dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}

hope i helped :D

natulia [17]4 years ago
7 0

Answer:

The answer is A dict = {‘Name’: ‘Matthew’, ‘Age’: 14, ‘School’: ‘ABC School’}; and dict = {‘season’: ‘fall’, ‘weather’: ‘cool’};. I hoper this helps. Have a great day.

Explanation:

I just did the assignment on ed and got them right.

Have a great day.

You might be interested in
How many different ways are there to save a document?<br><br> 1<br> 2<br> 3<br> 4
wolverine [178]
I’m pretty sure there are 2.

SAVE AS and SAVE
7 0
3 years ago
Read 2 more answers
What form of infrastructure improved trade and communication among Roman cities?
grigory [225]

Answer:

aqueducts

Explanation:

5 0
3 years ago
This was not a "true" operating system, but rather an operating environment.
olya-2409 [2.1K]

Answer:

Windows 1.0

Explanation:

It is known as Microsoft Windows first version.  Windows 1.0 is actually an operating environment which providesgraphical programs designed for windows and MS-DOS, a running environment.

7 0
3 years ago
The ____ command will confirm the system directory that you are currently in
stira [4]
Im pretty sure the answer is PWD
7 0
3 years ago
Select all of the uses of presentation software in the workplace.
zaharov [31]

Answer:

uhm 1, 2, 3, 4, 6, 7, and 8.

Explanation:

because those are all the uses of presentation software in a workplace.

8 0
4 years ago
Other questions:
  • A network engineer is configuring a network to be able to relay IPv6 packets. The network only supports IPv4 and does not have d
    11·1 answer
  • It is possible to make the document larger for viewing small text. <br> True or False
    13·2 answers
  • Which of the following does every font that you choose communicate, either on a conscious or subconscious level?
    10·2 answers
  • I need help, please and thank you.
    7·2 answers
  • Write a java program to create an array of 5 numbers. accept a number and search for that number in the array using linear searc
    12·1 answer
  • A(n) ____ occurs when a situation results in service disruptions for weeks or months, requiring a government to declare a state
    6·1 answer
  • Which of the selections below is not a benefit of imaging the computers on your network? There are fewer licensing fees because
    11·1 answer
  • Consider the following statement from the CS Principles course framework: The global distribution of computing resources raises
    12·1 answer
  • On what aspect of digital media do people often focus on at the expense of the important supporting roles?
    8·1 answer
  • Which component is responsible for collecting and consolidating data from network devices that are being monitored with snmp?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!