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]
3 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]3 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]3 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
Give me a code that draws a house with a roof in python. Please Answer!!!
Varvara68 [4.7K]

import turtle

window = turtle.Screen()

tr = turtle.Turtle()

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.back(100)

tr.left(120)

tr.forward(75)

tr.right(78)

tr.forward(60)

window.mainloop()

In my code, we use the turtle module for the graphics to draw the house with a roof.

8 0
3 years ago
A furniture manufacturer wants to find a more environmentally friendly way to make its products. A data analyst helps solve this
Alecsey [184]
The answer has to be true because everything makes sense
4 0
2 years ago
What does gif stand for in computer terms?
SSSSS [86.1K]
<span>GIF stands for Graphics Interchange Format</span> which was released by CompuServe in 1987. The Graphics in GIF is why some people argue against it's originally intended pronunciation as "jif" (like the peanut butter) 
4 0
3 years ago
What is the definition of podcast
Yanka [14]

a digital studio that is been live to all around the world

6 0
3 years ago
Why would you activate more than one nic on a pc?
natima [27]
For redundancy in case of failure or for connecting them to different subnets. 
4 0
4 years ago
Other questions:
  • Which best defines the term patch?
    12·1 answer
  • Using the _____ model brings sellers and buyers together on the web and collects commissions on transactions between these parti
    5·1 answer
  • The purchase of one cup of coffee a day what's going to do
    15·2 answers
  • • In your response, please include some examples of the three different types of storage.
    11·2 answers
  • Which of the following is true of Chinese Opera: Two opera centers emerged Beijing and Yangzhou 300-400 forms of opera arose in
    10·1 answer
  • You want to look up colleges but exclude private schools. Including punctuation, what would you
    9·2 answers
  • Student creates a Raptor program and uses the File Input and Output method to find the average of 5 test scores stored in a text
    5·1 answer
  • List three social implications of the wider range of piracy​
    15·1 answer
  • A data analyst adds descriptive headers to columns of data in a spreadsheet. How does this improve the spreadsheet?.
    8·1 answer
  • ________ tells users how to use software and what to do if software problems occur.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!