Professional Documents
Culture Documents
Class 10 Computer Application - CH 9 Python Conditionals and Loops
Class 10 Computer Application - CH 9 Python Conditionals and Loops
Programs using if-else (conditional statement), and ‘for’ and ‘while’ (looping
statement):-
Program 9.1: Program to obtain three integers and print the largest among the
three. Make use of only if statement.
Program 9.2: Program which receives a number and analyse if the provided
number is odd or even.
Page 1 of 2
Program 9.5: Program to print sum of natural numbers between 1 and 15.
Program 9.6: Program for computing and printing the sums of odd and even
integers of the first n natural numbers.
**** Given above are the Python programs of Ch 9, given in the book (pg 236, 238, 239). They have
been corrected as the book has a few errors, which you have already corrected before the practical
period.
Write the above programs in the copy and learn them for the final examination. Submit the copy
for internal marks after re-opening.
Page 2 of 2