We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
numemployees = 0 numemployees = int(input("how many employees do you have? ")) if numemployees <= 0: print(" you have entered an invalid number!") employees = [" "] * numemployees salaries =  * numemployees n = 0 sum = 0.0 average = 0.0 for n in range(0,numemployees): print("eneter the name", (n + 1)) employees[n] = str(input()) for n in range(0,numemployees): print("enter the employees salary", (n + 1)) salaries[n] = int(input()) sum = (sum + salaries[n]) if salaries[n] <=0 or salaries[n] >= 200000: print("you have entered an invalid amount try again") sum = (sum - salaries[n]) print("enter the employees salary", (n - 1)) salaries[n] = int(input()) average = (sum/numemployees) print(" the average salary is",average)
print("the highest salary is",max(salaries),employees) print("the Lowest salary is", min(salaries),employees)
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Python sort list of tuples, skipping column||2||63|
|C# Windows Form Navigation - Total Beginner||9||92|
|Code planning methods/tools?||5||55|
|How to properly export data from two SAS datasets to one XML data file?||5||44|
Join the community of 500,000 technology professionals and ask your questions.