[Type C]Q10. Write another program printing a table with two columns that help convert pounds in kilograms.

Program code:

Clear Doubts with Computer Tutor
In 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

Output:

Pounds | Kg 
1 | 0.453 
11 | 4.9830000000000005 
21 | 9.513 
31 | 14.043000000000001 
41 | 18.573 
51 | 23.103 
61 | 27.633 
71 | 32.163000000000004 
81 | 36.693 
91 | 41.223

A for loop is initiated for desired range.

Syntax of for: (Start, End, Steps):

The appropriate conversion factors are used and final output table is displayed.

Basic python functionality is demonstrated in above program.

To view all the lessons in chapter 1: http://computertutor.in/class-12-computer-science/chapter-1/

To view entire class 12 computer science study material: http://computertutor.in/resources/

You cannot copy content of this page