Skip to content

Instantly share code, notes, and snippets.

View vtu29512's full-sized avatar

vtu29512

  • Joined Oct 25, 2025
View GitHub Profile
@vtu29512
vtu29512 / Task13.py
Created October 25, 2025 06:23
Vtu29512
# plotting_probabilities.py
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm, binom, poisson
def plot_normal_distribution(mu=0, sigma=1):
@vtu29512
vtu29512 / Task12.py
Created October 25, 2025 06:20
Vtu29512
TASK 12 A
# importing libraries
import pygame
import time
import random
@vtu29512
vtu29512 / Task11.py
Created October 25, 2025 06:18
Vtu29512
TASK 11A
import tkinter as tk
# Function to change font style
def change_font():
label.config(font=("Arial", 18, "bold"))
@vtu29512
vtu29512 / Task10.py
Created October 25, 2025 06:14
Vtu29512
TASK 10A
#pip install matplotlib
import matplotlib.pyplot as plt
languages = ['Java', 'Python', 'PHP', 'JavaScript', 'C#', 'C++']
popularity = [22.2, 17.6, 8.8, 8, 7.7, 6.7]
@vtu29512
vtu29512 / Task9.py
Created October 25, 2025 06:12
Vtu29512
TASK 9A
# Initialize the list of grades
grades = [85, 90, 78, 92, 88]
# Display the grades list
print("Grades List:", grades)
@vtu29512
vtu29512 / Task8.py
Created October 25, 2025 06:09
Vtu29512
TASK 8A
def number_sequence(start, end, step=1):
current = start
while current <= end:
yield current
@vtu29512
vtu29512 / Task7.py
Created October 25, 2025 06:07
Vtu29512
TASK 7A
def analyze_student_grades():
# Sample data
student_names = ["Alice", "Bob", "Charlie", "Diana"]
student_grades = [85, 92, 78, 90]
@vtu29512
vtu29512 / Task6.py
Created October 25, 2025 06:05
Vtu29512
TASK 6A
def copy_files(file_paths):
for file_path in file_paths:
if os.path.exists(file_path):
with open(file_path, 'r') as original_file:
@vtu29512
vtu29512 / Task5.py
Created October 25, 2025 06:02
Vtu29512
TASK 5A
def find_employee_by_id(employees, target_id):
for employee in employees:
if employee['id'] == target_id:
return employee
@vtu29512
vtu29512 / Tadk4.py
Created October 25, 2025 06:01
Vtu29512
TASK 4A
#Add Elements: Add elements to the list.
list=[10,20]
a=30
list.append(a)