I have a simple Python assignment that needs like an hour or so to complete, I need a confirmation that you will dedicate that time so once I send it you will be able to solve it within an hour or...

1 answer below »
I have a simple Python assignment that needs like an hour or so to complete, I need a confirmation that you will dedicate that time so once I send it you will be able to solve it within an hour or two, I have 24 Hrs from now to do so, please let me know if you could that. Thank you and have a nice day
Answered Same DayOct 08, 2021

Answer To: I have a simple Python assignment that needs like an hour or so to complete, I need a confirmation...

Ketaki answered on Oct 09 2021
128 Votes
Q1.
s = "ball 5 2
box 10 5
ball 10 3.5
ball 5 2"
s1 = s.split("\n");
s2=s1.split(" ")
Q2.
s
="1 10 5 4 2 15"
s1=s.split(" ")
m=s1[0]
n=s1[1]
s2=s1[2:]
s3=sorted(s2)
for y in s3:
if y >= m and y <= n:
g.append(y)

print(g)
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here