Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
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.
Join the community of 500,000 technology professionals and ask your questions.