Question
python coding
Fill in the Blanks Type your answers in all of the blanks and submit What is the output of the following code? Type your answ
0 0
Add a comment Improve this question Transcribed image text
Answer #1

input code:

make a list a=[4,2,7,5,3] check condition if 5 not in a: print uf True print(Yes) else: else check again if 3 i

output:

NO ... Program finished with exit code 0 Press ENTER to exit console.

code:

'''make a list'''
a=[4,2,7,5,3]
'''check condition'''
if 5 not in a:
'''print uf True'''
print("Yes")
else:
'''else check again'''
if 3 in a:
'''print it'''
print("No")

Add a comment
Know the answer?
Add Answer to:
python coding Fill in the Blanks Type your answers in all of the blanks and submit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Fill in the Blanks Type your answers in all of the blanks and submit Balance the...

    Fill in the Blanks Type your answers in all of the blanks and submit Balance the following redox reaction and then fill in the blanks below: _Pb(OH) +_CIO_PbO2 +_Cl" + LOH" + _H2O The coefficient in front of Pb(OH) is Type your answer here The coefficient in front of CLOis Type your answer here The coefficient in front of PbO, is Type your answer here The coefficient in front of Cl(aq) is Type your answer here The coefficient in front...

  • 26-6 Homework • Answered • Due Sep 27th, 11:59 PM Fill in the Blanks Type your...

    26-6 Homework • Answered • Due Sep 27th, 11:59 PM Fill in the Blanks Type your answers in all of the blanks and submit How does the auditor use risk assessments when planning the audit? 1. Overall approach 2. Particularly consider 3. Design further audit procedur Answered Resubmit 06-5 - Risks Homework • Unanswered • Due Sep 27th, 11:59 PM Fill in the Blanks Type your answers in all of the blanks and submit An auditor might assess levels of...

  • C2 T10HW Question 11 Homework – Unanswered Fill in the Blanks Type your answers in all...

    C2 T10HW Question 11 Homework – Unanswered Fill in the Blanks Type your answers in all of the blanks and submit Consider the following information: 2Na(g) + 3N2(g) + 2NaN:(s) The AH is -87.3 kJ/mol. The Spanis - 344.2 J/mol. The "per mole" refers to the sodium azide. Given the above information, answer the questions below. Assume that the system and surroundings are in thermal equilibriu 298K AHPn for 2 moles of sodium azide produced is Type your answer here...

  • PYTHON CODE: Fill in the blanks in following line of code to get desired output? print(“My...

    PYTHON CODE: Fill in the blanks in following line of code to get desired output? print(“My name is ____ and I scored ____ points in my assignment.”(‘Ben’,100)) Desired Output: My name is Ben and I scored 100 points in my assignment.

  • (python) [30] Implement exception handling with ValueError here in the following code: There are three blanks...

    (python) [30] Implement exception handling with ValueError here in the following code: There are three blanks you need to fill in. Write the answers in the space given for you. class Area: def __init__(self): self.x = 0 def setX(self n): if n<=0: else: self.x = n #main code a = Areal) inputValue = int(input("Enter a Value that is greater than 0")) a.setX(inputValue) print("Invalid Input Value Entered")

  • Python Program Fill in the blanks in the following Python code.   It should create in sum...

    Python Program Fill in the blanks in the following Python code.   It should create in sum the sum of all values within the dictionary mydict. sum = ____________________ for _______________________:     _______________________ For example, if mydict = {"cat":12, "dog":6, "elephant":23} then executing the code should result in a sum having the value 12+6+23 == 41 Your code should work for any dictionary mydict.

  • Write a code in Python to print the following lines on the screen. Submit your code...

    Write a code in Python to print the following lines on the screen. Submit your code here, when it is completed. This is my first real project in Python. It seems very interesting and I cannot wait to learn more about it!

  • we have to use the answers below to fill in the blanks for Question 7 but...

    we have to use the answers below to fill in the blanks for Question 7 but I am not sure how to go about it. Please show me how and detail it. Thank you. C2T10HW Question 7 Homework Unanswered Fill in the Blanks You computed AS and AH for the reaction N2O4(g) - N2(g) + 202(g) in Question 6. Assuming the surroundings are also at 298K, use your answers in Question 6 to compute the following AH of the surroundings...

  • PYTHON I need help with this Python problem, please follow all the rules! Please help! THANK...

    PYTHON I need help with this Python problem, please follow all the rules! Please help! THANK YOU! Bonus Question Implement an efficient algorithm (Python code) for finding the 11th largest element in a list of size n. Assume that n will be greater than 11. det find 11th largest numberlissy Given, lissy, a list of n integers, the above function will return the 11th largest integer from lissy You can assume that length of lissy will be greater than 11....

  • python math operator help Coding Problem 2.4.7 (Advanced) (External resource) (1.0 points possible) CoughSyrup.py Submit tRun...

    python math operator help Coding Problem 2.4.7 (Advanced) (External resource) (1.0 points possible) CoughSyrup.py Submit tRun G Grades Reset I dosage 100 Console output will be displayed here 2 time since last dose 7 3 is nighttimeFalse 4 took_something_cross_reactiveFalse 5 6#You may modify the lines of code above, but don't move them! 7 #When you submit your code, we'll change these lines to 8#assign different values to the variables. 10 #Let's try to use our mathematical operators and logical 111#operators...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT