CSD203_-_FA_2024_-_PE_2872.webp
F

CSD203_-_FA_2024_-_PE_2872.webp

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
Chưa có bình luận nào.

Thông tin

Category
CSD203
Thêm bởi
Fuery2002
Ngày thêm
Lượt xem
1,267
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD203_-_FA_2024_-_PE_2872.webp
File size
157.7 KB
Dimensions
960px x 813px

Share this media

Back
Bên trên Bottom