[go: up one dir, main page]

0% found this document useful (0 votes)
393 views25 pages

Question Bank For Midterm - Jupyter Notebook

The document contains 15 coding questions and solutions in Python related to a midterm exam. The questions cover a range of topics including accepting user input, string manipulation, conditional logic, mathematical operations, and more. The solutions provided utilize basic Python constructs like functions, if/else statements, loops, and built-in functions. Each question is accompanied by sample test code to check the logic and output.

Uploaded by

Anoop Bose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
393 views25 pages

Question Bank For Midterm - Jupyter Notebook

The document contains 15 coding questions and solutions in Python related to a midterm exam. The questions cover a range of topics including accepting user input, string manipulation, conditional logic, mathematical operations, and more. The solutions provided utilize basic Python constructs like functions, if/else statements, loops, and built-in functions. Each question is accompanied by sample test code to check the logic and output.

Uploaded by

Anoop Bose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

11/19/2019 Question Bank For Midterm - Jupyter Notebook

Write a Python program which accepts a sequence of comma-separated numbers from user and
generate a list and a tuple with those numbers.

In [ ]:

values = input("Enter 5 comma separated values")


list1 = values.split(",")
tuple1 = tuple(list1)
print('List: ', list1)
print("Tuple: ", tuple1)

Python: Input an integer (n) and computes the value of n+nn+nnn

In [ ]:

a = int(input("Input an integer : "))


print(a+a**2+a**3)

Write a Python program to get the difference between a given number and 17, if the number is greater
than 17 return double the absolute difference.

In [ ]:

def difference(n):
if n <= 17:
return 17 - n
else:
return (n - 17) * 2

print(difference(2))
print(difference(19))

Write a Python program to test whether a number is within 100 of 1000 or 2000.

In [ ]:

def near_thousand(n):
return ((abs(1000 - n) <= 100) or (abs(2000 - n) <= 100))
print(near_thousand(1200))
print(near_thousand(900))
print(near_thousand(800))
print(near_thousand(2200))

Calculate the sum of three given numbers, if the values are equal then return thrice of their sum

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 1/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [ ]:

def sum_thrice(x, y, z):

sum = x + y + z

if x == y == z:
sum = sum * 3
return sum

print(sum_thrice(1, 2, 3))
print(sum_thrice(3, 3, 3))

Get a new string from a given string where 'Is' has been added to the front. If the given string already
begins with 'Is' then return the string unchanged

In [ ]:

def new_string(str):
if len(str) >= 2 and str[:2] == "Is":
return str
return "Is" + str

print(new_string("Test"))
print(new_string("IsNotTest"))

Write a Python program to find whether a given number (accept from the user) is even or odd, print out
an appropriate message to the user.

In [ ]:

num = int(input("Enter a number: "))


mod = num % 2
if mod > 0:
print("This is an odd number.")
else:
print("This is an even number.")

Write a Python program to concatenate all elements in a list into a string and return it.

In [ ]:

def concatenate_list_data(list):
result= ''
for element in list:
result += str(element)
return result

print(concatenate_list_data([5, 6, 7, 8]))

Write a Python program to compute the greatest common divisor (GCD) of two positive integers.

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 2/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [ ]:

def gcd(x, y):


gcd = 1

if x % y == 0:
return y

for k in range(int(y / 2), 0, -1):


if x % k == 0 and y % k == 0:
gcd = k
break
return gcd

print(gcd(10, 12))
print(gcd(100, 100))

Write a Python program to get the least common multiple (LCM) of two positive integers.

In [ ]:

def compute_lcm(x, y):


# choose the greater number
if x > y:
greater = x
else:
greater = y
while(True):
if((greater % x == 0) and (greater % y == 0)):
lcm = greater
break
greater += 1
return lcm
num1 = 50
num2 = 5
print("The L.C.M. is", compute_lcm(num1, num2))

Write a Python program to sum of two given integers. However, if the sum is between 15 to 20 it will
return 20.

In [ ]:

def sum(x, y):


sum = x + y
if sum in range(15, 21):
return 20
else:
return sum

print(sum(11, 9))
print(sum(12, 2))
print(sum(18, 12))

Write a Python program which will return true if the two given integer values are equal or their sum or
difference is 5.

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 3/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [ ]:

def test_number5(x, y):


if x == y or abs(x-y) == 5 or (x+y) == 5:
return True
else:
return False

print(test_number5(7, 2))
print(test_number5(9, 2))
print(test_number5(2, 2))

Write a Python program to take the user information for n students details like name, age, address and
print them on different lines.

In [ ]:

def personal_details():
name, age = "Alok", 25
address = "Mumbai, Maharashtra, India"
print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))

personal_details()

Write a Python program to find the sum of array (hint take a list as array).

In [ ]:

def array_summer(arr):
total = 0
for item in arr:
# shorthand of total = total + item
total += item
return total

# Test input
print(array_summer([1, 2, 3, 3, 7]))

Write a Python program to imitate login activity of a user also do its validation. (hint:-If user enters the
wrong userid or password it should provide a message)

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 4/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [ ]:

import re
password = input("Input Password")
# password = "R@m@_f0rtu9e$"
flag = 0
while True:
if (len(password)<8):
flag = -1
break
elif not re.search("[a-z]", password):
flag = -1
break
elif not re.search("[A-Z]", password):
flag = -1
break
elif not re.search("[0-9]", password):
flag = -1
break
elif not re.search("[_@$]", password):
flag = -1
break
elif re.search("\s", password):
flag = -1
break
else:
flag = 0
print("Valid Password")
break

if flag ==-1:
print("Not a Valid Password")

Write a Python program to imitate a shopping transaction where user purchase 5 notebooks of 20 rs
each and 2 pens of 5 rs each. Show the total amount to be payable to the shopkeeper.

In [ ]:

cost_of_notebook = 20
cost_of_pen = 5

no_of_pens_purch = int(input("Enter Number of pens purchased"))


no_of_notebooks_purch = int(input("Enter Number of Notebooks Purchased"))

print("Cost of Notebooks Purchased = ", cost_of_notebook*no_of_notebooks_purch, 'Rs')


print("Cost of Pens Purchased = ", no_of_pens_purch*cost_of_pen, 'Rs')
print("Total_Cost =", cost_of_notebook*no_of_notebooks_purch+no_of_pens_purch*cost_of_pen,

Accept the age of the person and print an appropriate message as per the table given alongside:

Age Message

<=12 You are child

13-19 You are a teenager

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 5/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

20-59 You are an adult

>= 60 You are a senior citizen

In [ ]:

age = int(input("Enter Your Age"))


if age <= 12:
print("Your are a child")
elif age>=13 and age<=19:
print("You are a teenager")
elif age>=20 and age<= 59:
print("You are an adult")
elif age >= 60:
print("You are a senior citizen")

Accept the purchases made by a customer and calculate and print the discount payable by him. You are
given that a discount of 10% is given on purchases greater than Rs. 3000/- and no discount is given for
purchases below that.

In [ ]:

amt = int(input("Enter Sale Amount: "))

if amt<3000:
print("No Discount Applicable")
elif amt>=3000:
print("Amount payable after 10% discount is", amt-amt*0.1)
print("Total discount applied =", amt*0.1)

Accept the gross salary of an employee. Calculate and print the tax based on the given criteria.

Salary Tax Rate

Upto Rs.2,00,000 Nil

2,00,001-5,00,000 10%

Above 5,00,000 20%

In [ ]:

sal = int(input("Enter Your Gross Annual Income"))


if sal <= 200000:
Print("No Tax Payable")

elif sal>=200001 and sal<=500000:


print("Salary after 10% tax =", sal-sal*0.1, "Total Tax Deducted =", sal*0.1)

elif sal>500000:
print("Salary after 20% tax =", sal-sal*0.2, "Total Tax Deducted =", sal*0.2)

Scholarships are given to students on the following basis:

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 6/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

Percentage obtained Scholarship Amount

>=90 5000

>=80 1000

Otherwise Nil

In [ ]:

perc = int(input("enter your percentage"))


if perc >=90:
print("Scholarship Amount is 5000")
elif perc >=80:
print("Scholarship Amount is 1000")
else:
print("No Scholarship")

Accept the quantity of an item purchased and its price. Calculate the amount of purchase. If the amount
exceeds Rs.5000, a discount of 20% is given otherwise the discount rate is 10%. Print the input values,
the discount rate and amount, net amount to be paid by the customer.

In [ ]:

qty = int(input("enter the quantity of items purchased"))


prc = int(input("enter the cost of one item"))

if (qty*prc)>=5000:
print("Quantity Purchased =", qty, "Amount Paid =", prc, "Discount = 20%", "Net Amount
elif (qty*prc)<5000:
print("Quantity Purchased =", qty, "Amount Paid =", prc, "Discount = 10%", "Net Amount

Accept the marks obtained by the 5 students for subjects of Python, Statistics, Machine Learning, Deep
Learning, Big-Data also all marks are out of 100. Find the sum and percentage of the for all students
and display the name and marks of the first rank holder.

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 7/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [ ]:

print("Enter 'x' for exit.");


print("Enter marks obtained in 5 subjects: ");
m1 = input();
if m1 == 'x':
exit();
else:
m2 = input();
m3 = input();
m4 = input();
m5 = input();
mark1 = int(m1);
mark2 = int(m2);
mark3 = int(m3);
mark4 = int(m4);
mark5 = int(m5);
sum = mark1 + mark2 + mark3 + mark4 + mark5;
average = sum/5;
percentage = (sum/500)*100;
print("Average Marks = ", average);
print("Percentage Marks = ", percentage,"%");

Given 2 int arrays, a and b, each length 3, return a new array length 2 containing their middle
elements.

In [ ]:

middle_way = ([1, 2, 3], [4, 5, 6], [7,8,9])


mid_way = ([7, 7, 7], [3, 8, 0], [9,9,9])
result_array = [middle_way[1][1],mid_way[1][1]]
print(result_array)

Given an array of ints, return a new array length 2 containing the first and last elements from the
original array. The original array will be length 1 or more.

make_ends([1, 2, 3]) → [1, 3]

make_ends([1, 2, 3, 4]) → [1, 4]

make_ends([7, 4, 6, 2]) → [7, 2]

In [ ]:

def make_ends(nums):
return [nums[0], nums[-1]]

In [ ]:

make_ends(([1, 2, 3]))

Write a Python program to find the Mean, Median and Mode of three user entered values

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 8/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [47]:

n1 = int(input("enter first num"))


n2 = int(input("enter second num"))
n = [n1,n2]
len(n)
get_sum = sum(n)
mean = get_sum / len(n)

print("Mean / Average is: " + str(mean))

enter first num1


enter second num2

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-47-198c3a2719b5> in <module>
6 mean = get_sum / len(n)
7
----> 8 print("Mean / Average is: " + str(mean))

TypeError: 'str' object is not callable

7###### Write a Python program to check the validity of password input by users. Go to the editor Validation:

a. At least 1 letter between [a-z] and 1 letter between [A-Z].

b. At least 1 number between [0-9]

c. At least 1 character from [$#@]

d. Minimum length 6 characters

e. Maximum length 16 characters

In [ ]:

Write a program to print the A using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 9/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [8]:

result_str="";
for row in range(0,7):
for column in range(0,7):
if (((column == 1 or column == 5) and row != 0) or ((row == 0 or row == 3) and (col
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

***
* *
* *
*****
* *
* *
* *

In [ ]:

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 10/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [13]:

# Python3 program to print alphabet B pattern

# Function to display alphabet pattern

def print_pattern(n):
# Outer for loop for number of lines(rows)
for i in range(n):

# Inner for loop for logic execution


for j in range(n + 1):

# prints two column lines


if ((j == 0 or j == n) or

# print first line of alphabet


i == 0 and j != 0 and j != n or

# prints last line


i == n - 1 or

# prints middle line


i == n // 2):
print("*", end="")
else:
print(" ", end="")

print()

# Size of the letter


num = int(input("Enter the size: \t "))

if num > 7:
print_pattern(num)
else:
print("Enter a size minimum of 8")

Enter the size: 8


*********
* *
* *
* *
*********
* *
* *
*********

Write a program to print the C using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 11/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [9]:

for row in range(7):


for col in range(5):
if (col==0) or ((row==0 or row==6) and col>0):
print("*", end="")
else:
print(end="")
print()

*****
*
*
*
*
*
*****

Write a program to print the D using stars

In [7]:

rslt=""
for row in range (7):
for col in range(7):
if (col==1 or ((row==0 or row==6) and (col>1 and col<5)) or (col==5 and row!= 0 and
rslt= rslt+"*"
else:
rslt=rslt+" "
rslt = rslt+"\n"
print(rslt)

****
* *
* *
* *
* *
* *
****

Write a program to print the E using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 12/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [11]:

result_str="";
for row in range(0,7):
for column in range(0,7):
if (column == 1 or ((row == 0 or row == 6) and (column > 1 and column < 6)) or (row
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

*****
*
*
****
*
*
*****

Write a program to print the F using stars

In [12]:

str="";
for Row in range(0,7):
for Col in range(0,7):
if (Col == 1 or (Row == 0 and Col > 1 and Col < 6) or (Row == 3 and Col > 1 and Col
str=str+"*"
else:
str=str+" "
str=str+"\n"
print(str)

*****
*
*
****
*
*
*

Write a program to print the G using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 13/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [15]:

result_str="";
for row in range(0,7):
for column in range(0,7):
if ((column == 1 and row != 0 and row != 6) or ((row == 0 or row == 6) and column >
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str);

***
* *
*
* ***
* *
* *
***

Write a program to print the H using stars

In [16]:

str="";
for Row in range(0,7):
for Col in range(0,7):
if ((Col == 1 or Col == 5) or (Row == 3 and Col > 1 and Col < 6)):
str=str+"*"
else:
str=str+" "
str=str+"\n"
print(str)

* *
* *
* *
*****
* *
* *
* *

Write a program to print the I using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 14/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [43]:

for row in range(7):


for col in range(5):
if col==2 or (row==0 and col!=2) or row==6:
print("*", end="")
else:
print(end=" ")
print()

*****
*
*
*
*
*
*****

Write a program to print the J using stars

In [20]:

for row in range(7):


for col in range(5):
if col==2 or (row==0 and col!=2) or (row==6 and col<2):
print("*", end="")
else:
print(end=" ")
print()

*****
*
*
*
*
*
***

Write a program to print the K using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 15/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [24]:

str=""
j = 5
i = 0
for Row in range(0,7):
for Col in range(0,7):
if (Col == 1 or ((Row == Col + 1) and Col != 0)):
str=str+"*"
elif (Row == i and Col == j):
str=str+"*"
i=i+1
j=j-1
else:
str=str+" "
str=str+"\n"
print(str)

* *
* *
* *
**
* *
* *
* *

Write a program to print the L using stars

In [23]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (column == 1 or (row == 6 and column != 0 and column < 6)):
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

*
*
*
*
*
*
*****

Write a program to print the M using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 16/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [25]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (column == 1 or column == 5 or (row == 2 and (column == 2 or column == 4)) or (r
result_str=result_str+"* "
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

* *
* *
* * * *
* * *
* *
* *
* *

Write a program to print the N using stars

In [26]:

for row in range(6):


for col in range(6):
if col==0 or col==5 or (row==col and (col>0 and col<5)):
print("*", end="")
else:
print(end=" ")
print()

* *
** *
* * *
* * *
* **
* *

Write a program to print the O using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 17/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [27]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (((column == 1 or column == 5) and row != 0 and row != 6) or ((row == 0 or row =
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

***
* *
* *
* *
* *
* *
***

Write a program to print the P using stars

In [28]:

result_str="";
for row in range(0,7):
for column in range(0,7):
if (column == 1 or ((row == 0 or row == 3) and column > 0 and column < 5) or ((colu
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

****
* *
* *
****
*
*
*

Write a program to print the Q using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 18/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [30]:

str=""
for Row in range(0,7):
for Col in range(0,7):
if ((Col == 1 and Row != 0 and Row != 6) or (Row == 0 and Col > 1 and Col < 5) or (
str=str+"*"
else:
str=str+" "
str=str+"\n"
print(str)

***
* *
* *
* *
* * *
* *
** *

Write a program to print the R using stars

In [31]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (column == 1 or ((row == 0 or row == 3) and column > 1 and column < 5) or (colum
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

****
* *
* *
****
* *
* *
* *

Write a program to print the S using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 19/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [33]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (((row == 0 or row == 3 or row == 6) and column > 1 and column < 5) or (column =
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

****
*
*
***
*
*
****

Write a program to print the T using stars

In [34]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (column == 3 or (row == 0 and column > 0 and column <6)):
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

*****
*
*
*
*
*
*

Write a program to print the U using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 20/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [35]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (((column == 1 or column == 5) and row != 6) or (row == 6 and column > 1 and col
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

* *
* *
* *
* *
* *
* *
***

Write a program to print the V using stars

In [36]:

str=""
for Row in range(0,7):
for Col in range(0,7):
if (((Col == 1 or Col == 5) and Row < 5) or (Row == 6 and Col == 3) or (Row == 5 an
str=str+"*"
else:
str=str+" "
str=str+"\n"
print(str)

* *
* *
* *
* *
* *
* *
*

Write a program to print the W using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 21/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [37]:

i=0
j=3
for row in range (4):
for col in range (7):
if col==0 or col==6 or (col==5 and row==2) or (col==4 and row==1):
print("*", end="")
elif row==i and col==j:
print("*", end="")
i = i+1
j = j-1
else:
print(end=" ")
print()

* * *
* * * *
** **
* *

Write a program to print the X using stars

In [40]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (((column == 1 or column == 5) and (row > 4 or row < 2)) or row == column and co
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

* *
* *
* *
*
* *
* *
* *

Write a program to print the Y using stars

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 22/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [41]:

str=""
for Row in range(0,7):
for Col in range(0,7):
if (((Col == 1 or Col == 5) and Row < 2) or Row == Col and Col > 0 and Col < 4 or (
str=str+"*"
else:
str=str+" "
str=str+"\n"
print(str)

* *
* *
* *
*
*
*
*

Write a program to print the Z using stars

In [42]:

result_str=""
for row in range(0,7):
for column in range(0,7):
if (((row == 0 or row == 6) and column >= 0 and column <= 6) or row+column==6):
result_str=result_str+"*"
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str)

*******
*
*
*
*
*
*******

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 23/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

In [49]:

pip install nbconvert

Requirement already satisfied: nbconvert in c:\users\anoop\anaconda3\lib\sit


e-packages (5.4.1)
Requirement already satisfied: mistune>=0.8.1 in c:\users\anoop\anaconda3\li
b\site-packages (from nbconvert) (0.8.4)
Requirement already satisfied: jinja2 in c:\users\anoop\anaconda3\lib\site-p
ackages (from nbconvert) (2.10)
Requirement already satisfied: pygments in c:\users\anoop\anaconda3\lib\site
-packages (from nbconvert) (2.3.1)
Requirement already satisfied: traitlets>=4.2 in c:\users\anoop\anaconda3\li
b\site-packages (from nbconvert) (4.3.2)
Requirement already satisfied: jupyter_core in c:\users\anoop\anaconda3\lib
\site-packages (from nbconvert) (4.4.0)
Requirement already satisfied: nbformat>=4.4 in c:\users\anoop\anaconda3\lib
\site-packages (from nbconvert) (4.4.0)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\anoop\anaconda
3\lib\site-packages (from nbconvert) (0.3)
Requirement already satisfied: bleach in c:\users\anoop\anaconda3\lib\site-p
ackages (from nbconvert) (3.1.0)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\anoop\anacon
da3\lib\site-packages (from nbconvert) (1.4.2)
Requirement already satisfied: testpath in c:\users\anoop\anaconda3\lib\site
-packages (from nbconvert) (0.4.2)
Requirement already satisfied: defusedxml in c:\users\anoop\anaconda3\lib\si
te-packages (from nbconvert) (0.5.0)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\anoop\anaconda3
\lib\site-packages (from jinja2->nbconvert) (1.1.1)
Requirement already satisfied: ipython-genutils in c:\users\anoop\anaconda3
\lib\site-packages (from traitlets>=4.2->nbconvert) (0.2.0)
Requirement already satisfied: six in c:\users\anoop\appdata\roaming\python
\python37\site-packages (from traitlets>=4.2->nbconvert) (1.12.0)
Requirement already satisfied: decorator in c:\users\anoop\anaconda3\lib\sit
e-packages (from traitlets>=4.2->nbconvert) (4.4.0)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\anoop\ana
conda3\lib\site-packages (from nbformat>=4.4->nbconvert) (3.0.1)
Requirement already satisfied: webencodings in c:\users\anoop\anaconda3\lib
\site-packages (from bleach->nbconvert) (0.5.1)
Requirement already satisfied: attrs>=17.4.0 in c:\users\anoop\anaconda3\lib
\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert) (19.
1.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\anoop\anaconda
3\lib\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert)
(0.14.11)
Requirement already satisfied: setuptools in c:\users\anoop\anaconda3\lib\si
te-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert) (40.8.
0)
Note: you may need to restart the kernel to use updated packages.

In [ ]:

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 24/25


11/19/2019 Question Bank For Midterm - Jupyter Notebook

localhost:8888/notebooks/Python Sessions/Question Bank For Midterm.ipynb# 25/25

You might also like