'I want to print all process numbers with their respective arrival and burst time

noOfProcess = int(input("Enter no of processes : "))

print(noOfProcess)

for i in range(noOfProcess):
   arrivalTimes= input("Enter arrival time of P" + str(i) + ": ")
   burstTime = input("Enter burst time of P" + str(i) + ": ")

   list1 = [i+1,arrivalTimes,burstTime]
  # result= list1.values()

print(list1)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source