TORONTO KIDS COMPUTER CLUB | Aurora Saturday 13:00 Python Practice 10.03.
18406
post-template-default,single,single-post,postid-18406,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 13:00 Python Practice 10.03.

05 Oct Aurora Saturday 13:00 Python Practice 10.03.

Question:
Use input() to ask user to input 10 numbers. Store the elements in two different lists, make sure the elements in the first list are smaller than the second list.

Input Specification:
input 10 numbers in one line, each number is separated by a space.

Output Specification:
first line contains relatively 5 smaller numbers in ascending order
second line contains relatively 5 bigger numbers in ascending order

Sample Input:
58 24 13 15 63 9 8 81 1 78

Sample Output:
1 8 9 13 15
24 58 63 78 81
No Comments

Sorry, the comment form is closed at this time.