Homepage
Open in app
Sign inGet started

Guvi

Go to the profile of Karthika A
Karthika A
Jan 6, 2020

Take a sample of 10 phishing e-mails and find the most common words.

The variables ph1 to ph10 represents 10 different real-time phishing emails. Note that these can be saved within a list as a list of values.

Read more…
Go to the profile of Karthika A
Karthika A
Dec 19, 2019

Compute EMIs for a loan using the numpy or scipy libraries.

Numpy methods used to compute EMI:

numpy.ppmt() in Python

numpy.ppmt(rate, nper, pv, fv, when = ‘end’) : This financial function helps user to compute payment…

Read more…
Go to the profile of Karthika A
Karthika A
Dec 19, 2019

Open a webpage using the urllib library

  • Call the read function on the web URL variable
  • Read variable allows reading the contents of data files
  • Read the entire content of the URL into a variable called request_url
Read more…
Go to the profile of Karthika A
Karthika A
Dec 19, 2019

Python program to plot the function y = x^2 using the pyplot or matplotlib libraries.

Read more…
Go to the profile of Karthika A
Karthika A
Dec 19, 2019

Recursive Python program to test if a string is a palindrome or not.

Problem Description

The program takes a string and checks whether a string is a palindrome or not using recursion.

Read more…
Go to the profile of Karthika A
Karthika A
Dec 18, 2019

Python program to implement a stack and queue using a list data-structure.

Stack using List

Stack Data Structure

The stack is a linear data structure that follows a particular order in which the…

Read more…
Go to the profile of Karthika A
Karthika A
Dec 18, 2019

Recursive code to compute the nth Fibonacci number.

Recursion:

“Recursion is a process in which a problem is defined in terms of itself”.

The problem is solved by repetitively breaking it into a smaller problem which is similar in…

Read more…
Go to the profile of Karthika A
Karthika A
Dec 18, 2019

Recursively find the factorial of a natural number.

Recursion:

“Recursion is a process in which a problem is defined in terms of itself”.

The problem is solved by repetitively breaking it into a smaller problem which is similar in…

Read more…
Go to the profile of Karthika A
Karthika A
Dec 17, 2019

Recursive code to find the sum of all elements of a list in python

findSum(list1) is recursively called until the last element of the list.

Read more…
Go to the profile of Karthika A
Karthika A
Dec 16, 2019

Random number generator that generates random numbers between 1 and 6

(simulates a dice).

randint()

randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions and…

Read more…
About GuviLatest StoriesArchiveAbout MediumTermsPrivacy