Computers and Technology
Computers and Technology, 17.08.2021 01:50, id0617045

Please post PYTHON screenshots Q4 - Comparisons using Indexing
list_1 = [10, 20, 30, 40]
list_2 = [13, 15, 17, 19, 21, 23]
list_3 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
list_4 = [21, 9, 98, 289, 938]
Do the following comparisons using indexing:
Check if the second value of list_1 is one of the last three values in list_3 (Hint: remember operator in)
Store the result in comp_result_1
Check if the third value of list_4 is greater than the fourth value in list_4
Store the result in comp_result_2
Check if the last value of list_4 is less than the second value in list_4
Store the result in comp_result_3
Check if the second value of list_2 multiplied by the fifth value of list_3 is less than the second to last value in list_4
Store the result in comp_result_4
Keep in mind that you are storing the result of a comparison to a variable, so resulting variables should all be booleans.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, shadowsnake
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible. restrictions: branches or loops should not be used. the code must use the internal mod and logical functions. hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible. this is matlab
Answers: 2
image
Computers and Technology, 24.06.2019 08:20, bob4059
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
image
Computers and Technology, 24.06.2019 10:30, brandon1748
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
image
Computers and Technology, 24.06.2019 14:00, superstarsara5ouh83x
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a. the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c. banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
Do you know the correct answer?
Please post PYTHON screenshots Q4 - Comparisons using Indexing
list_1 = [10, 20, 30, 40]

Questions in other subjects:

Konu
Mathematics, 30.09.2019 06:10