Professional Documents
Culture Documents
Python Basics
Python Basics
Table of Contents:
1. Python Basics
2. Root Finding Methods
1. Python Basics
You may explain the following points with codes described in the lab.
Introduction to Python:
Hints-
• Python is a popular programming language known for its simplicity and versatility, and it is
widely used in scientific computing.
• Using Google Colab to Code Python: Google Colab is an online platform that provides a
Jupyter Notebook interface for writing and executing Python code. It offers advantages
such as free GPU support, collaboration features, and access to a wide range of Python
libraries. However, it may have disadvantages such as session timeouts and dependency on
internet connectivity.
Variables and Operators: Arithmetic operators, Comparison operators and Logical operators
Functions:
• Python Program: Write a Python program to implement each root-finding method. Use
functions and loops to iterate through the process until the desired accuracy is achieved.
• Example Outputs: For different inputs and equations, demonstrate the outputs obtained by
applying the root-finding methods. Show how the methods converge to the true root with
each iteration, and discuss any limitations or considerations.