subject
Computers and Technology, 13.10.2020 03:01 nady82

(Python) A) For the given list below (i. e., mylist), split the list into two lists. One list should only contain numbers. The other one should only have strings.
# your code goes in here
mylist = ['Mobile', 'Laptop', 100, 'Camera', 310.28, 'Speakers', 27.00,
'Television', 1000, 'Laptop Case', 'Camera Lens'] # do not change this
string_list = # fill in here
number_list = # fill in here
print(string_list, number_list) # do not change this
B) For the given dictionary below, remove the key and value pairs if value is more than 600. So your code should give {'PLAYSTATION': 500, 'SMART WATCH': 550, 'TABLET': 400}
products = {'SMART WATCH': 550,'PHONE' : 1000, 'PLAYSTATION': 500, 'LAPTOP' : 1550,
'MUSIC PLAYER' : 600, 'TABLET' : 400} # do not change this
products_less_than_600 = {} # do not change this
# fill in here
print(products_less_than_600) # do not change this

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
You know the right answer?
(Python) A) For the given list below (i. e., mylist), split the list into two lists. One list shoul...
Questions
question
History, 21.02.2020 20:47
question
Mathematics, 21.02.2020 20:47
question
Mathematics, 21.02.2020 20:47
question
Mathematics, 21.02.2020 20:47
question
English, 21.02.2020 20:47
question
Mathematics, 21.02.2020 20:47
Questions on the website: 13722367