Posts

University Question Papers and Answer Keys Programming in Python CST 362 KTU

     

Assignment

Image
  Programming in Python CST 362  Assignment -1 Date of submission:3-Feb-2025   before 1:30pm Note: Create a pdf file with program and output. Submit the printout control statements (if , for , while ) 1. Print the sin series x-x^3/3!+x^5/5!....x^n/n! ( read n.) 2. In the above program read the value x and find the sum of the series.(Use factorial function from math) 3.Print the following patterns   *   *   *   *    *     *   *    *      *    *    1    1      2  1          2   3    1      2   3   4 The pyramid is given for n=4 do this for any n 4. Find the position of the largest digit in a number.( consider unique digits) Eg: i/p : 546   largest digit=6 position =3 5. Positive integer is called an Armstrong number of order n if...