Posts

Python For Engineers CST 445 KTU Open Elective Notes S7 - Dr Binu V P

About Me About the Course and Syllabus Model Question Paper Python For Engineers CST 445 University Question Paper-Python For Engineers CST 445 -Dec 2022 University Question Paper-Python For Engineers CST 445-May 2023  University Question Paper-Python For Engineers CST 445 - Dec 2023  and Answer Scheme University Question Paper-Python For Engineers CST 445-Nov2024   and Answer Scheme University Question Paper-Python For Engineers CST 445- May 2024  and Answer Scheme University Question Paper -Python For Engineers CST 445 - Nov 2025 and Answer Scheme University Question Paper -Python For Engineers CST 445 - May 2026 and Answer Scheme Assignment-2 Assignment-3 Module 1:Basics of Python  1.Introduction to Python 2.Running Python Program- IDLE,Interactive Shell, Jupyter notebook 3.Identifiers, variables and keywords 4.Basic Python data types- numbers and strings, type conversion 5.Operators 6.Operator precedence and expression evaluation 7.Input and output- input(...

Assignment -2

Image
Date of submission:14-July-2026    before 10pm Note: Create a pdf file with program and output and share in group.File name must be your name. Learn 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 abcd….x= a^n + b^n + c^n + d^n + …+x^n where n is the length of the number Eg: 153 = 1^3 + 5^3+ 3^3 #153 is an Armstrong Number. Eg:1634= 1^4+6^4+3^4+4^4#1634 is an Armstrong Number. Write a Python program to check whether the given number is an Armstrong Number. 6. Find the square root of a number using Newton’s method ( refer th...

Assignment-3

All University Questions- 3 marks PART A questions. Answer briefly.Date of submission 24th July2026. 1. Explain the basic data types available in Python, with examples. 2. Write a Python program to reverse a number and also find the sum of digits of the number.Prompt the user for input. 3.Define keyword and enumerate some of the keywords in Python. (3) 4 Explain flow of execution of while loop with example. 5.What will be the output of the following code for c in range(25,15,-2): c = c + 5 print(c, end=' ') 6.Explain the differences between pass and comment statement in python. 7.Write Python Program to generate prime numbers between two limits.  8. What is meant by a type conversion function? List some common type conversion function with examples. 9.Illustrate the concept of modules and explain how they are used in Python programs. 10. Write a Python program to find the sum of all even numbers between 1 and N 11.Enumerate any 3 functions in math module.  12 Write a python p...

Model Question Paper CST 445 KTU Python For Engineers

  APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY SEVENTH SEMESTER B.TECH DEGREE EXAMINATION, MONTH & YEAR Course Code: CST445                                              Course name : PYTHON FOR ENGINEERS Max Marks: 100                                                                                                               Duration: 3 Hours PART-A (Answer All Questions. Each question carries 3 marks) 1. Explain the basic data types available in Python, with examples. 2. Write a Python program to reverse a number and also ...

University Question Papers and Scheme CST 445 Python For Engineers

 

Syllabus CST 445 Python For Engineers

CST445 PYTHON FOR ENGINEERS CATEGORY  L T P CREDIT      YEAR OF INTRODUCTION OEC                  2  1 0   3                     2019 Preamble: The objective of the course is to provide learners an insight into Python programming in a scientific computation context and develop programming skills to solve engineering problems. It covers programming environment, important instructions, data representations, intermediate level features, Object Oriented Programming and file data processing of Python. This course lays the foundation to scientific computing, develop web applications, Machine Learning, and Artificial Intelligence-based applications and tools, Data Science and Data Visualization applications.   Prerequisite: NIL Note : Students who have successfully completed CST 283 - Python for Machine Learning (...

More advanced graphical output

Image
 Here, we will learn a more advanced syntax that harnesses the full power of matplotlib. It gives the user more options and greater control. import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 # defined as a special case to avoid division by zero def s(x):      a = np.where(x == 0., 1., np.sin(x)/x)      return a x=np.arange(0., 10., 0.1) y=np.exp(x) t=np.linspace(-15., 15., 150) z=s(t) # create a figure window fig = plt.figure(figsize=(9, 7)) # subplot: linear plot of exponential ax1 = fig.add_subplot(2, 2, 1) ax1.plot(x, y, 'C0') ax1.set_xlabel('time (ms)') ax1.set_ylabel('distance (mm)') ax1.set_title('exponential') #subplot: semi-log plot of exponential ax2 = fig.add_subplot(2, 2, 2) ax2.plot(x, y, 'C2') ax2.set_yscale('log') # ax2.semilogy(x, y, 'C2') # same as 2 previous lines ax2.set_xlabel('time (ms)') ax2.set_ylabel('distance (mm)') ax2.set_title('exponent...