What is the output?
answer = 0
for numA in [2,4]:
for numB in [3, 5]:
...
Computers and Technology, 22.01.2021 01:50 DragonWarrior203
What is the output?
answer = 0
for numA in [2,4]:
for numB in [3, 5]:
answer = answer + numA + numB
print (answer)
Output:
Answers: 3
Computers and Technology, 22.06.2019 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
Computers and Technology, 22.06.2019 06:30
What result from the passage of this amendment
Answers: 1
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
Social Studies, 17.05.2021 14:00
English, 17.05.2021 14:00
English, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
Biology, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
Biology, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
English, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00
Computers and Technology, 17.05.2021 14:00
Medicine, 17.05.2021 14:00
Mathematics, 17.05.2021 14:00