Question

In: Computer Science

python: people = { "Molan": { "age": 46, "seIdentity": "Dan Jukes", "supowers": [ "Radiaon Immunity", "Turni...

python:

people = {

"Molan": {

"age": 46,

"seIdentity": "Dan Jukes",

"supowers": [

"Radiaon Immunity",

"Turni tiny",

"Radiati blast"

]

},

"Etlame": {

"age": 1800,

"seIdentity": "Unknown",

"supowers": [

"Immortality",

"Heat Immunity",

"Inferno",

"Teleportation",

"Interdi travel"

]

}

#output all people ages as set

# out old people age from dict with name

Solutions

Expert Solution

Please find the answer below.
Please do comments in case of any issue. Also, don't forget to rate the question. Thank You So Much.

people = {
"Molan": {
"age": 46,
"seIdentity": "Dan Jukes",
"supowers": [
"Radiaon Immunity",
"Turni tiny",
"Radiati blast"
]
},
"Etlame": {
"age": 1800,
"seIdentity": "Unknown",
"supowers": [
"Immortality",
"Heat Immunity",
"Inferno",
"Teleportation",
"Interdi travel"
]
}
}
  
ageSet =set()
for p in people:
ageSet.add(people[p]["age"])
print("ageSet = ",ageSet)


people = {
"Molan": {
"age": 46,
"seIdentity": "Dan Jukes",
"supowers": [
"Radiaon Immunity",
"Turni tiny",
"Radiati blast"
]
},
"Etlame": {
"age": 1800,
"seIdentity": "Unknown",
"supowers": [
"Immortality",
"Heat Immunity",
"Inferno",
"Teleportation",
"Interdi travel"
]
}
}
  
for p in people:
print("Age = ",people[p]["age"]," Name = ",p)



Related Solutions

THE CODE MUST BE PYTHON superHeroes = { "MoleculeMan": { "age": 29, "secretIdentity": "Dan Jukes", "superpowers":...
THE CODE MUST BE PYTHON superHeroes = { "MoleculeMan": { "age": 29, "secretIdentity": "Dan Jukes", "superpowers": [ "Radiation Immunity", "Turning tiny", "Radiation blast" ] }, "MadameUppercut": { "age": 39, "secretIdentity": "Jane Wilson", "superpowers": [ "Million tonne punch", "Damage resistance", "Superhuman reflexes" ] }, "EternalFlame": { "age": 1000, "secretIdentity": "Unknown", "superpowers": [ "Immortality", "Heat Immunity", "Inferno", "Teleportation", "Interdimensional travel" ] }, "Doomguy": { "age": 27, "secretIdentity": "Space Trooper", "superpowers": [ "Immortality", "Heat Immunity", "Teleportation", "Super Speed", "Superhuman reflexes" ] }, "Maui":{...
Dan, age 45, is an independent contractor working in pharmaceutical sales, Cheryl, age 42, is a...
Dan, age 45, is an independent contractor working in pharmaceutical sales, Cheryl, age 42, is a nurse at a local hospital. Dan’s ssn is 400-20-100 and Cheryl’s SSN is 200-40-8000 an they reside at 2033 Palmetto Drive, Atlanta, GA 30304. Dan is paid according to commissions from sales, and he has no income tax or payroll tax withholdings. Dan operates his business from his home office. During 2018 Dan earned total commission in his business of $125,000. Cheryl earned a...
Ms. Thom, age 46, works as an RN in the intensive care unit at a large...
Ms. Thom, age 46, works as an RN in the intensive care unit at a large busy medical center. Over the last three years she has gained 30 lbs and quit attending the fitness classes at the local recreation center. Her co-workers keep trying to get her to come back to fitness class, but she says that she is too tired after work and just wants to go home. She has smoked for 15 years, but says that she is...
Dan is Single, Age 47 and has a new business on 1/15/2018, he provides service for...
Dan is Single, Age 47 and has a new business on 1/15/2018, he provides service for a summer camp for children. Dan's 2018 transactions related to business: Income    $100,000 Mortgage Interest 8,000 Property Taxes 3,000 Utilities    5,000 Supplies    7,000 Telephone fees 2,000 Estimated Federal Tax Payments    15,000 Dan Purchased a commercial building on 2/1/2018 for $300,000 in which (building=80% of the cost and land= 30% of the cost). Dan also purchased a computer for his business...
Differentiate primary adaptive immunity from secondary adaptive immunity. Differentiate active secondary immunity from passive secondary immunity.
Differentiate primary adaptive immunity from secondary adaptive immunity. Differentiate active secondary immunity from passive secondary immunity.
true or fasle Per Dan Ariely, all people care about is money, and the moment we...
true or fasle Per Dan Ariely, all people care about is money, and the moment we give them money, we can direct them to work one way or another. This is why we give bonuses to bankers and pay in all kinds of ways.
Mr. F. was diagnosed with type 2 diabetes mellitus at age 46. At that time, he...
Mr. F. was diagnosed with type 2 diabetes mellitus at age 46. At that time, he was overweight, enjoyed foods with high carbohydrate and fat content, and led a sedentary life. His family history indicated that his mother and his brother had diabetes. Weight loss, appropriate diet, and exercise were recommended to reduce blood glucose levels. 1. List the factors contributing to diabetes mellitus in this case. At age 50, Mr. F. noticed that his vision was cloudy, particularly in...
It is estimated that over 46 million people do not have health insurance coverage in the...
It is estimated that over 46 million people do not have health insurance coverage in the United States. In addition, many more individuals are underinsured or have such high deductibles and co-pays that they do not even seek medical care. Given this information, the logical question that arises is, should health care coverage be provided to everyone?
Python age = input(‘How old are you? ’) if age >= 14 print(‘You may go on...
Python age = input(‘How old are you? ’) if age >= 14 print(‘You may go on the rollercoaster’) Read carefully - What will the program output if the user types ‘15’? 2. Concisely explain the difference between ‘while’ and ‘for’ ______________________________________________ 3.The __________statement terminates the loop containing it. Control of the program flows to the statement immediately after the body of the loop. 4.The ____________ statement is used to skip the rest of the code inside a loop for the...
Dan and Cheryl are married, file a joint return, and have no children. Dan is a...
Dan and Cheryl are married, file a joint return, and have no children. Dan is a pharmaceutical salesman and Cheryl is a nurse at a local hospital. Dan's SSN is 400-20-1000 and Cheryl's SSN is 200-40-8000 and they reside at 2033 Palmetto Drive, Nashville, TN 28034. Dan is paid according to commissions from sales; however, his compensation is subject to withholding of income and payroll taxes. He also maintains an office in his home as the pharmaceutical company does not...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT