+ 1

num= [-5,-1,-3,-4,-2] arrange this in ascending order squaring each numbers in Python

Python Programming!

3rd Apr 2020, 3:31 PM
X-PLORE BIPUL
X-PLORE BIPUL - avatar
8 Antworten
+ 1
First show your attempt than we help you in your code.We couldn't write code on your behalf.
3rd Apr 2020, 3:33 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 1
X-PLORE BIPUL a, b = b, a
3rd Apr 2020, 3:40 PM
maf
maf - avatar
+ 1
Do this num=[-5,-1,-3,-4,-2] num.sort() print(num*num)
4th Apr 2020, 4:37 PM
rachel oyugi
0
How can i exchange two variables. a=1 b=2 after exchange a=2 b=1? Please Help!
3rd Apr 2020, 3:36 PM
X-PLORE BIPUL
X-PLORE BIPUL - avatar
0
X-PLORE BIPUL #a=1. b=2 k=a. #k=1 a=b. #a=2 b=k. #b=1
3rd Apr 2020, 3:39 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
rachel oyugi by far the best answer
4th Apr 2020, 8:31 PM
Tarun
Tarun - avatar