Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Sunday, 1 December 2024

FPP Assignment No 14 and 15

FPP Assignment No 14 and 15

Problem Statement:Develop a program to create a DataFrame from a NumPy array with custom column names.import numpy as np import pandas as pd # Create a NumPy array data = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) # Define custom column names columns = ['Column A', 'Column B', 'Column C'] # Create ...

Read More

Friday, 29 November 2024

FPP Assignment No 13

FPP Assignment No 13

 Problem Statement:  Create a basic CGI script in Python that allows students to submit their name and grade through a form and displays a personalized message based on their input? PrerequisitesEnsure you have a web server capable of running CGI scripts (e.g., Apache or Python's built-in ...

Read More

FPP Assignment No 12 Write Python code that creates a simple graphical user interface (GUI) application.

FPP Assignment No 12 Write Python code that creates a simple graphical user interface (GUI) application.

Problem Statement: Write Python code that creates a simple graphical user interface (GUI) application. Program Implementation and Explanation:import tkinter as tkfrom tkinter import messageboxdef display_greeting():    """Displays a greeting message."""    name = name_entry.get()  ...

Read More

FPP Assignment no 11 Backing up a given file.

FPP Assignment no 11 Backing up a given file.

Problem Statement: Develop a program to backing Up a given Folder (Folder in a current working directory) into a ZIP File by using relevant modules and suitable methods.Program Implementation:import osimport zipfilefrom datetime import datetimedef backup_to_zip(folder):    # Ensure ...

Read More

Wednesday, 27 November 2024

Data Structure and GUI: ADT, Comprehension, Time Complexity

Data Structure and GUI: ADT, Comprehension, Time Complexity

 Abstract Data StructuresAbstract data structures provide a logical way to organize and manipulate data. These include structures such as:Stacks: Operate on a Last-In-First-Out (LIFO) principle.Queues: ...

Read More

Tuesday, 26 November 2024

Regular Expression in Python.

Regular Expression in Python.

Q. What is Regular Expression?Ans: The word Regular comes from the concept of Regular Languages in automata theory.Regular Languages can be represented using finite set of rules. These rules ...

Read More

Monday, 25 November 2024

Python Built in Modules: datetime and random

Python Built in Modules: datetime and random

 datetime Module:Q. Why do we require datetime module?Ans: The datetime module is very important module in python for any type of application that deals with date and time related functionality.This ...

Read More

Sunday, 24 November 2024

FPP Python assignment no 8 to 9. Theory, Flowchart and Algorithm.

FPP Python assignment no 8 to 9. Theory, Flowchart and Algorithm.

 Assignment No:08Problem Statement:  Write a python program to accept a file name from the user and perform the following operations 1.Display the first N line of the file.2.Find ...

Read More