Kizspy. me (-1, A, 5) (30, B, 23) (42, DE, 43) (25, BB, 10) (45, E, 52) (26, F, 27) (11, H, 30) (36, XH, 51) (46, ZX, 5) (16, P,20) (14, EC, 10)
def f3(self, x) - Delete the first node having price is smaller than given x (x=20). Output in this case like that:
OUTPUT
1
(35, Α, 25) (32, Β, 23) (42, DE, 43) (45, E, 52) (15, F, 27) (18, H, 30) (36, XH, 51) (46, ZX, 5) (16, P, 20) (14,EC, 10)
(35, Α, 25) (32, Β, 23) (42, DE, 43) (45, E, 52) (15, F, 27) (18, H, 30) (36, XH, 51) (16, P, 20) (14, EC, 10)
def f4(self) - Sort price in descending order of all Products whose Id is an odd number, if the price of Products is same price, then sort name in ascending order. The other elements are unchanged.Output in this case like that:
OUTPUT
(-1, A, 5) (31, B, 23) (42, DE, 23) (45, E, 52) (21, F, 23) (18, Η, 30) (31, XH, 23) (41, ZX, 5) (11, P, 23) (14,EC, 23)
Zoom
+ 100%
Close