Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HHow can I add (and) in my code ? main.py 1 numList = [1] 2 while True: 3 num = int(input) 4 if num: numList.append(num)

image text in transcribedHHow can I add (and) in my code ?

main.py 1 numList = [1] 2 while True: 3 num = int(input) 4 if num: numList.append(num) 6 else: 7 break 8 9 small = numList[@] 10 large numList[@] 11 for num in numList: 12 if numlarge: 15 large = num 16 print(small, large) Only show failing tests Download this submission 1: Compare output 0/4 Output differs. See highlights below. Special character legend 10 5 3 Input 21 2 -6 Your output 2 21 Expected output 2 and 21

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

Students also viewed these Databases questions