Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python 2.7.13 This is my last computer science program for this quarter, and if

ID: 3607251 • Letter: P

Question

Python 2.7.13 This is my last computer science program for this quarter, and if anyone could please help me with it in Python 2.7.13, I would be greatly appreciative! Thank you so much in advance! A picture of the code would be great as well 00 Verizon 6:32 PM 86%) D + The Science of Competing Living with Cyber Program: Random List Statisties Your task in this programming assignment is to write a Python program that generaties a list of randou integers, such that both its length and the minimum and maximum values added to the list are provided by the user. Subsoquently, display the list, followed by statistics about the list. Hore's output of a sample run (user input is shown in bold red) Bow many randon integers would you 1ike to add to the list? 10 What would you like the miniaus value to be?-50 What would you like The list: 1-46,43. 34,48 7. 31, 36 -11, 39.-9 The mean of the list is 17.2. The median of the ist is 32.5 The range of the liat is 94 the maximun value to be? 50 Hcre's output of a sccond sample run (again, user input is shown in bold red) low many randon integers would you like to add to the list? 7 What would you like the mininn value to be?5 what would yo like the maximun value to be? 999 The list: 1866,666, 47, 661.68. 492, 81 The mean of the liet is 557.285714286 The median of the ist is 661 The range of the 118 785 To help clarify, here are some specifies and or constraints (1) The random integers must be stored in a single Python list (2) Gencrating the random list (including its length, and minimum and maximum valucs) must be done in a function that is called feom the main part of the program (see the template for more details) (3) You must use the list functions discussed in class to add integers to the list (4) Calculating the mcan, median, and range of the list must be done in separate functions, one for each statistie 5) You must mamually cakcuilatie the mean, median, and range of the list (ie, without using math or statistical functions provided in Python libraries) however, you may use list functions to help (6) You must use the provided source code template; and (7) You must submit your source code as a single py file

Explanation / Answer

#!/usr/bin/env bash if [ $# -lt 2 ] then echo "insufficient arguments. case=$1, port=$2" exit 0 fi case=$1 port=$2 base_logdir="./logdir" logdir="$base_logdir/$case" echo "start. case=$case, port=$port" # Stop the existing first. sh scripts/tensorboard_stop.sh $case if [ ! -d "out" ] then mkdir out fi nohup tensorboard --logdir=$logdir --port=$port --reload-interval=5 >> out/$case.tb.out &