1) Create a Lift Operation-based program using Python? Q) You have one five-floor building and the lift will be shifted from 1 st floor to the fifth floor and the fifth floor to the first floor. 1) program solution using While Loop? import time i=1 while i<=10: if i<=5: print("lift is on > floor no is ",i) time.sleep(5) else: print("lift is on < foor no is ",11-i) time.sleep(5) i=i+1 2) Is this program explanation using for loop? import time i=1 for i in range(1,11): if i<=5: print("lift is on > floor no is ",i) time.sleep(5) else: print("lift is on < floor no is ",11-i) time.sleep(5) Lift Program import time import pyttsx3 ...
Hi, I'm Shiva Gautam. With over 15 years of diverse experience in various IT domains, I am now an entrepreneur focusing on both training and software development. My expertise spans across multiple technologies, and I've authored numerous articles on subjects including Java, Python, REACT, NODE, ANGULAR, Cloud, software testing, Django framework, C#, Flutter, Salesforce, Ruby on Rails, .NET, and more. For additional information, please visit shivaconceptsolution.com and kangaroosoftware.net.