## Best Way to Learn Python (2021 Step-by-Step Guide)

• Python

Python is a very popular language. It’s also one of the languages that I recommend for beginners to start with. But how do you go about learning this language? The best way to learn Python is to understand the big picture of all what you… Read More »Best Way to Learn Python (2021 Step-by-Step Guide)

## Consider the following formula and evaluate the y value for the range of t values found in a file with format 𝑦(𝑡)=𝑣0𝑡−0.5𝑔𝑡2

• Python

Problem: Consider the following formula and evaluate the y value for the range of t values found in a file with format 𝑦(𝑡)=𝑣0𝑡−0.5𝑔𝑡2 File Format: v0 3.0 t: 0.15592 0.28075 0.36807889 0.35 0.57681501876 0.21342619 0.0519085 0.042 0.27 0.50620017 0.528 0.2094294 0.1117 0.53012 0.3729850 0.39325246 0.21385894… Read More »Consider the following formula and evaluate the y value for the range of t values found in a file with format 𝑦(𝑡)=𝑣0𝑡−0.5𝑔𝑡2

## Read data from two file and calculate salary of employee

• Python

Problem: An organization wants to compute monthly wages to be paid to an employee in an organization. The input data is provided in two different files. File1 contains permanent employee data about employees (i.e. Empid, name, hourly wages), and File2 contains working hours information of… Read More »Read data from two file and calculate salary of employee

## Basics Of MatPlotLib In Python

• Python

import numpy as np import matplotlib.pyplot as plt x=np.arange(0,20) y=x+2 plt.title(“Matplotlibdemo”) plt.xlabel(“x axis caption”) plt.ylabel(“y axis caption”) plt.plot(x,y,linestyle=’-‘,color=’b’) plt.show() OutPut

## Check Whether The Number Is Prime Or Not

• Python

Write a function that takes two numbers as input parameters and returns True or False depending on whether they are co-primes. Two numbers are said to be co-prime if they do not have any common divisor other than one. flag=0 def coprime(no1,no2): global flag mini=no1… Read More »Check Whether The Number Is Prime Or Not

## Count Word, Line, Words Start From Vowel From File Python

• Python

Write a python program that reads the contents of the file poem.txt and count the number of alphabets blank spaces lowercase letters and uppercase letters the number of words starting from vowel and the number of occurrences of each word in the file. alphabet=0 space=0… Read More »Count Word, Line, Words Start From Vowel From File Python

## Recursive Function In Python

• Python

Write a recursive function that takes x value as an input parameter and print x-digit strictly in increasing number. [i.e. x = 6 than output 67891011]. def printdemo(x,count): if(count<=0): return else: print(x,end=”) x=x+1 count=count-1 printdemo(x,count) x=int(input(“Enter Number “)) printdemo(x,x) OutPut Enter Number 7 78910111213

## Convert Digit Into Word

• Python

This program will convert from number to word. For this purpose we are using dictionary data type which is used with key value pairs. Here the main logic is put into function which is defined by following Syntex. def fun_name(argument): def maptoword(number): global list list=[]… Read More »Convert Digit Into Word

## Implement The Basic Calculator

• Python

Here we are using basic operator and function to implement basic calculator. This program provide basic use of operator and how to work with function. con=1 while con==1: no1=int(input(“Enter First Value “)) no2=int(input(“Enter Second Value “)) print(“Choice”) print(“1. Add”) print(“2. Subtract”) print(“3. Multiplication”) print(“4. Division”)… Read More »Implement The Basic Calculator

## Implement The Gaussian Function

• Python

The bell shaped Gaussian function, f(x)=(1/s * root(2*pi)) * exp[(-1/2) * (x-m/s)^2] is one of the most widely used functions in science and technology. The parameters m and s > 0 are prescribed real numbers. Make a program for evaluating this function for different values… Read More »Implement The Gaussian Function