Here is class 12 computer science Unit 1 [Type B] solutions for Sumita Arora back exercise assignment. Below includes both textual and video solutions wherever required. View all the answers in assignment for chapter 1 and for all chapters here.Watch all tutorials for chapter 1: Python Revision Tour – 1.
limit = float(input("Enter the limit")) max_price = 0 # Read the next price next_price = float(input("Enter a price or 0 to stop:")) while next_price > 0: if next_pricemax_price and next_price>max_price: max_price =next_price #Read the next price next_price = float(input("Enter a price or 0 to stop:")) if max_price > 0: print('The largest price', max_price) else : print("No! price satisfy the condition")
Jayes Finished! Ramya Finished! Taruna Got it!
(a) No output Reason: In proper range() parameter passed. (b) output is follow: * * * * * In total loop execute total 5 times.
No, the loop is not infinite and the conclusion is come into account through limit of while loop and terminating case in that.
Clear Doubts with Computer TutorIn case you’re facing problems in understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or absolutely anything around computer science, feel free to join CTs learner-teacher community: students.computertutor.in
You cannot copy content of this page