Code: Select all
a = [1,5,2,3]
ผลลัพท์ที่อยากได้
Code: Select all
a = 5
Moderators: mindphp, ผู้ดูแลกระดาน
Code: Select all
#python 2.7.12
cars = [1, 5, 8]
cars.sort(reverse=True)
Code: Select all
#python 2.7.12
cars = [1, 5, 8]
cars.sort()
print(cars)
Users browsing this forum: No registered users and 4 guests