Print user_num1 is negative. if user_num1 is less than 0. End with newline. Assign user_num2 with...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 5 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. 1 user_num1 = int(input()) 2 user_num2 = int(input()) 3 4 5 if user_num1 < 0: 6 Your code goes here *** print("user_num1 is negative.") 7 if user_num2 >= 14: 8 user_num2 = 5 9 else: Check 10 11 12 print('user_num2 is', user_num2) 13 print("user_num2 is less than or equal to 12.") Try again X A possible solution uses an if statement for user_num1, and an if-else statement for user_num2. 1: Compare output Output differs. See highlights below. Special character legend X Your output Input Expected output 2: Compare output 3: Compare output Input Your output Input Your output 0 13 user_num2 is less than or equal to 12. user num2 is 134 user_num2 is 5 -1 12 user_num1 is negative. user_num2 is less than or equal to 12. user_num2 is 12 1 -2 2 user_num2 is less than or equal to 12. user_num2 is -2 2 Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 5 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. 1 user_num1 = int(input()) 2 user_num2 = int(input()) 3 4 5 if user_num1 < 0: 6 Your code goes here *** print("user_num1 is negative.") 7 if user_num2 >= 14: 8 user_num2 = 5 9 else: Check 10 11 12 print('user_num2 is', user_num2) 13 print("user_num2 is less than or equal to 12.") Try again X A possible solution uses an if statement for user_num1, and an if-else statement for user_num2. 1: Compare output Output differs. See highlights below. Special character legend X Your output Input Expected output 2: Compare output 3: Compare output Input Your output Input Your output 0 13 user_num2 is less than or equal to 12. user num2 is 134 user_num2 is 5 -1 12 user_num1 is negative. user_num2 is less than or equal to 12. user_num2 is 12 1 -2 2 user_num2 is less than or equal to 12. user_num2 is -2 2 Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 5 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. 1 user_num1 = int(input()) 2 user_num2 = int(input()) 3 4 5 if user_num1 < 0: 6 Your code goes here *** print("user_num1 is negative.") 7 if user_num2 >= 14: 8 user_num2 = 5 9 else: Check 10 11 12 print('user_num2 is', user_num2) 13 print("user_num2 is less than or equal to 12.") Try again X A possible solution uses an if statement for user_num1, and an if-else statement for user_num2. 1: Compare output Output differs. See highlights below. Special character legend X Your output Input Expected output 2: Compare output 3: Compare output Input Your output Input Your output 0 13 user_num2 is less than or equal to 12. user num2 is 134 user_num2 is 5 -1 12 user_num1 is negative. user_num2 is less than or equal to 12. user_num2 is 12 1 -2 2 user_num2 is less than or equal to 12. user_num2 is -2 2 Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 5 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. 1 user_num1 = int(input()) 2 user_num2 = int(input()) 3 4 5 if user_num1 < 0: 6 Your code goes here *** print("user_num1 is negative.") 7 if user_num2 >= 14: 8 user_num2 = 5 9 else: Check 10 11 12 print('user_num2 is', user_num2) 13 print("user_num2 is less than or equal to 12.") Try again X A possible solution uses an if statement for user_num1, and an if-else statement for user_num2. 1: Compare output Output differs. See highlights below. Special character legend X Your output Input Expected output 2: Compare output 3: Compare output Input Your output Input Your output 0 13 user_num2 is less than or equal to 12. user num2 is 134 user_num2 is 5 -1 12 user_num1 is negative. user_num2 is less than or equal to 12. user_num2 is 12 1 -2 2 user_num2 is less than or equal to 12. user_num2 is -2 2
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Crozet Cozy Chairs (CCC, Inc.) produces three kinds of hand crafted outdoor, ultra-lightweight, totally hip chairs: sling chairs, Adirondack chairs and hammocks. The unit profit for each of these...
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Sung Corporation, a clothing retailer, engaged in the transactions listed in the first column of the table below. Opposite each transaction is a ratio and space to mark the effect of each transaction...
-
A baseball pitcher throws a curveball with an initial velocity of 65 mi/h and a spin of 6500 r/min about a vertical axis. A baseball weighs 0.32 lbf and has a diameter of 2.9 in. Using the data of...
-
Q1. Evaluate Britannia's Financial position (Long term and Short term) for 2021-22 relative to 2020-21 by analyzing the appropriate ratios from the following and give decision that whether being a...
-
In a domestic refrigerator, the refrigerant commonly used is (a) Air (b) Carbon dioxide (c) Ammonia (d) Freon-12
-
ABC is an electronic manufacturing company based in Singapore. It sells a wide rangeof products to markets in the Asian region. Currently, it has a sizeable IT division withthe following...
-
An agent makes the following statement to a potential buyer: 'The property has amazing views - look at these images. You can see all the way to the bay!' The agent shows the buyer images of the...
-
Elwood is a pig farmer who is known to enjoy a drink or two. One day in July, after a weekend of particularly heavy drinking, he staggered into the office of Pork Bellies of America and offered to...
-
Determine the missing amounts. (a) (b) (c) $ LA Assets $76,000 I $84.000 $ Liabilities $40.000 $35.000 + $ Stockholders' Equity $60,000 $50,000
-
Fort Gaines guards the western entrance to Mobile Bay. In order to prevent enemy ships from passing, it needs to be able to cover about 1 km of the bay with cannon fire. The cannons fire projectiles...
-
Prepare one "poor example" and one "good example" of a citation for an online source (e.g. website or blog for a bibliography) and an example of an in paragraph citation in APA (i.e. paraphrase with...
-
Estimate the inventory turnover for 2019. Balance Sheet 2019 Cash $8,000 2018 $4,000 AR Inventory Fixed Assets 3,000 5,000 14,000 12,000 17,500 14,000 Total Assets $42,500 $35,000 AP $14,000 $8,000...
-
1C.1 What's the largest gravitational force you can produce between the two masses? (Note: it's convenient to express the forces in this sim in terms of piconewtons-pN. One piconewton is 0.000000 000...
-
The specific heat of a certain type of cooking oil is 1.75 J/(g.C). How much heat energy is needed to raise the temperature of 2.92 kg of this oil from 23 C to 191 C? 9 = J
-
From a shed with Harley Davidson Motor Company scrawled across it in 1903, four men- William Harley and the Davidson brothers-Walter, William, and Arthur- produced the first Harley Davidson...
-
Refrigerant-134a enters an adiabatic compressor as saturated vapor at 120 kPa at a rate of 0.3 m3/min and exits at 1-MPa pressure. If the isentropic efficiency of the compressor is 80 percent,...
-
Carl and Jenny adopt a Russian orphan. The adoption takes 2 years and two trips to Russia and is final in 2012. They pay $6,000 in 2011 and $7,500 in 2012 of qualified adoption expenses, and have AGI...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
John Henry died on May 1, 2018. When does his final 1040 have to be filed?
-
John and Mary Hughes file their income tax return on a calendar year basis. John dies on May 15, 2018. Mary remarries on July 4, 2018. Can Mary file a joint return with John for the taxable year 2018?
-
In 2018, Cabell Mapp passed away in Belle Haven, Virginia. Pursuant to his will, a testamentary trust was established. The trust instrument requires that \(\$ 10,000\) a year be paid to the...
Study smarter with the SolutionInn App