Course Content
Introduction to Programming and Python
Overview of Python History and evolution Python’s features and benefits Set-Up Development Environment Installing Python and IDE (e.g., PyCharm, VS Code) Writing and running your first Python program Hands-On Activity Write a simple Python program to display “Hello, World!”
0/3
Structure Of A Python Program
A comprehensive overview of the structure of a Python program, covering essential concepts efficiently.
0/1
Basic Syntax and Control Statements
Basic Syntax Structure of a Python program Data types, variables, and operators
0/3
Object-Oriented Programming (OOP)
0/3
Python Programming For Beginners
About Lesson

Implement a Program Using the math Library

  • Objective: Write a Python program that uses the math library to perform various mathematical operations.
  • Steps:
    1. Import the math library.
    2. Perform operations like calculating the square root, power, and trigonometric functions.

    python

    import math number = 16 print(f"Square root of {number} is {math.sqrt(number)}") print(f"2 raised to the power 3 is {math.pow(2, 3)}") print(f"Sine of 90 degrees is {math.sin(math.radians(90))}")

Write a Data Analysis Script Using Pandas

  • Objective: Write a Python script that uses the Pandas library to perform data analysis on a dataset.
  • Steps:
    1. Import the pandas library.
    2. Create a DataFrame from a dictionary or read from a CSV file.
    3. Perform basic data analysis operations like calculating mean, sum, and filtering data.

    python

    import pandas as pd # Creating a DataFrame from a dictionary data = {'Name': ['Alice', 'Bob', 'Charlie'], 'Age': [25, 30, 35], 'Salary': [50000, 60000, 70000]} df = pd.DataFrame(data) # Display the DataFrame print(df) # Calculate the mean age print(f"Mean age: {df['Age'].mean()}") # Filter data where Salary is greater than 55000 high_salary = df[df['Salary'] > 55000] print("Employees with salary greater than 55000:") print(high_salary)
PAGE TOP