Hslip11
Q1]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bootstrap Buttons</title> <!-- Bootstrap CSS CDN --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> </head> <body> <div class="container mt-5"> <h2>Bootstrap Buttons</h2><!-- Primary Button -->
<button type="button" class="btn btn-primary">Primary Button</button>
<!-- Secondary Button -->
<button type="button" class="btn btn-secondary">Secondary Button</button>
<!-- Success Button -->
<button type="button" class="btn btn-success">Success Button</button>
<!-- Danger Button -->
<button type="button" class="btn btn-danger">Danger Button</button>
<!-- Warning Button -->
<button type="button" class="btn btn-warning">Warning Button</button>
<!-- Info Button -->
<button type="button" class="btn btn-info">Info Button</button>
</div>
<!-- Bootstrap JS and Popper.js CDN (Required for Bootstrap components) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
Q2]
A]
import pandas as pd
import matplotlib.pyplot as plt
Load Iris dataset
iris_data = pd.read_csv('iris.csv')
Get the frequency of the three species
species_counts = iris_data['species'].value_counts()
Plotting Pie chart
plt.figure(figsize=(8, 8))
plt.pie(species_counts, labels=species_counts.index, autopct='%1.1f%%', startangle=90, colors=['#ff9999','#66b3ff','#99ff99'])
plt.title('Iris Species Distribution')
plt.show()
B]
import pandas as pd
Load winequality-red dataset
wine_data = pd.read_csv('winequality-red.csv')
Display basic statistical details of the data
statistical_details = wine_data.describe()
print("Basic Statistical Details of the Wine Quality Data:\n", statistical_details)