National Youth Electronic Information Intelligence Innovation Contest (Final) python·simulation four volumes, including answer analysis

National Youth Electronic Information Intelligence Innovation Contest (Final)
python·Simulation four volumes
1. Program questions
The first question:
Description
The science and technology group was divided into 2 teams to collect the data information of tomato growth. The 2 teams sorted the data from small
to large:
a = [1,3,4,6,7,13,17,21]
b = [2,5,6,8,10,12,14,16, 18]
Please clearly merge the data of these two teams into an ordered list from small to large.
 

Input:
1,3,4,6,7,13,17,21
2,5,6,8,10,12,14,16,18

Output:
[1,2,3,4,5,6,6,7,8,10,12,13,14,16,17,18,21]

 

Question 2:
Description Input a positive integer n, automatically generate n random floating-point numbers in the range of 1-100, display and output each random number
on the screen , and display the average value. Requirements: display one data per line, keep 2 after the decimal point

enter:

Guess you like

Origin blog.csdn.net/IT_Scratch/article/details/130045518