Python
- Linear Regression Namaste doston! Aaj hum baat karenge ek bahut hi interesting topic ke baare mein – Linear Regression. Yeh Data Science ki duniya ka ek aisa...
- Set & List Comprehension’s in Python Sets A set is an unordered collection Eliminates duplicate entries. Empty set my_set= set() my_set = 1,2,3,4 :- add my_set.add(5) remove /de...
- Learn Python Programming in 2024 Introduction to Python: What is Python?: Python is a high-level, interpreted programming language known for its simplicity and readability....
- Write a Python script to print a dictionary where the keys are numbers between 1 and 15 (both included) and the values are the square of the keys. Sample Dictionary{1: 1, 2: 4, 3: 9, 4...
- Write a Python program to combine two dictionaries by adding values for common keys. Write a Python program to combine two dictionaries by adding values for common keys. d1 = {‘a’: 100, ‘b’: 200, ‘c’:300} d2 = {‘a’: 300, ‘b’:...
- Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. A prime number is a number that is evenly divisible only by...
- Floyd’s triangle is a right-angled triangular array of natural numbers as shown below: Write a program to print the Floy’d triangle. # Floyd's Triangle row = int(input("Rows you want : ")) num = 1 print("Floyd's Triangle") for...
- The marks obtained by a student in 3 different subjects are input by the user. Your program should calculate the average of subjects and display the grade. The student gets a grade as per the following rules: Average Gr...
- Write a program that prompts the user to input number of calls and calculate the monthly telephone bills as per the following rule: Minimum Rs. 200 for up to 100 calls. . Plus Rs. 0.60 per call for next 50 calls. . Plus Rs. 0.50 per call for next 50 calls. . Plus Rs. 0.40...
- Write a program that prompts the user to input a year and determine whether the year is a leap year or not. Leap Years are any year that can be evenly divided by 4. A year that is evenly divisible by 100 is a leap year only if it is also evenly div...
- Numpy Practical Solution Create a 5X2 integer array from a range between 100 to 200 such that the difference between each element is 10 import numpy print("Creating...
- Program to demonstrate Data series and Data Frames using pandas. 1.Write a Pandas program to add, subtract, multiple and divide two Pandas Series. import pandas as pd s1 = pd.Series([10, 20, 30, 40, 50]) s...
- Programs to demonstrate Dataset Operations using Matplotlib , Matplotlib is a Python 2D plotting library that produces high-quality charts and figures, which helps us visualize extensive data to under...