Write A Python Program That Generates A List With 10 Random Integer Numbers Between 1 And 100. In This Program, Write A Function Called Count That Accepts The List As An Argument And Returns The Number Of Elements Which Are Less Than 50. =================

匿名用户 最后更新于 2021-11-29 17:10 计算机类Computing

Write a Python program that generates a list with 10 randominteger numbers between 1 and 100. In this program, write afunction called count that accepts the list as anargument and returns the number of elements whichare less than 50.

==========================================

Sample Run:

The list is [2, 38, 100, 70, 31, 86, 51, 37, 71, 15]

The number of elements less than 50 = 5

已邀请: