Skip to main content

Let's Start The Python


Theory based question:


Why python ? What is Python?


Why python is the best choice for Web based Programming today?
Why python is called interpreted language?

Practical based tutorial:

In these blogs you can learn complex python programs in  easy ways without import any module.

Python program to check if a number is positive, negative or zero



Python program to check if variable is of integer or string



Python program to get the Factorial number of given number







Comments

Popular posts from this blog

Classification & Confusion Matrix & Accuracy Paradox

Classification  work on voting the object belongs from which classes has more probability  There are two types of classification : Binary classification : There are two classes we have ex: male-female , cat-dog , yes-not  Multiple classification :   There are classes more than two we have ex: traffic signs , face recognition , flower race  , Digit Recognition Confusion matrix :  Confusion matrix is one type of technique to evaluate the model accuracy for classification problem. In this technique we consider how many of positive and negative data points we predict correctly. The main consideration terms are accuracy, precision and recall The accuracy was an appealing matric, because it was a single number. Here precision and recall(sensitivity) are two numbers. So to get the final score (accuracy) of our model we use F1 score, so that we have a single number. Here is the F1 score's mathematical formula: F1 = 2x precision x recall / (precision ...

Multiple Classification using Iris Dataset

Multiple Classification using Iris Dataset ; this dataset is come in built in sklearn library. Here we have got three classes of Iris flower; you can read fully article using dataset['DESCR'] Although you can read comments for better understanding or you can just copy it. # %%  Import libraries import  numpy  as  np import  pandas  as  pd import  matplotlib.pyplot  as  plt # %%  Load dataset from  sklearn.datasets  import  load_iris dataset = load_iris() print(dataset.keys()) # %%  Assign the dataset to features and outputs x = dataset.data y = dataset.target print(x.shape , y.shape) # %%  Data Spliting from  sklearn.model_selection  import  train_test_split x_train, x_test, y_train, y_test = train_test_split(x,y, test_size= 0.2 , random_state= 0...