Create 20 Random Integers Array Numbers 1 100 Includes 1 100 Pick Sort First Even Numbers Q37023268

Create 20 random integers in an array which has the numbersbetween 1 and 100 (includes both 1 and 100). Pick and sort firstthe even numbers then the odd numbers in ascending order and printthe final array. (i.e. [1 3 51 77 4 12 44 82])”


Solution


main.py saved 1 import random 2 def even_odd sort (arr, arr_len) a, b = 0, arr len - 1 4 while(akb): 6 7 8 9 10 while(arr[a]

https://OrdinaryCyberComputing.kunlstudy.repl.run Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.8.2] on linux 5 5 5 2

if you like the answer

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.