Three letters are selected at random from the 8 letters of the word COMPUTER, without regard
to order.a. Find the number of possible selections of 3 letters.
b. Find the number of selections of 3 letters with the letter P.
c. Find the number of selections of 3 letters where the 3 letters form the word TOP
A class consists of 3 students from Ashville and 4 from Bewton. A committee of 5 students is
chosen at random the class.a. Find the number of committees that include 2 students from Ashville and 3 from Bewton
are chosen.
b. In fact 2 students, from Ashville and 3 from Bewton are chosen. In order to watch a video,
all 5 committee members sit in a row. In how many different orders can they sit if no two
students from Bewton sit next to each other.
By both generating and directly computing obtain the number of the following:
a. All permutations of (0,1,2,3,4,5).
b. All permutations of ("A","B","C").
c. Permutations of size 3 of (0,1,2,3,4,5).
d. Permutations of size 2 of (0,1,2,3,4,5,6).
e. Combinations of size 3 of (0,1,2,3,4,5).
f. Combinations of size 2 of (0,1,2,3,4,5).
g. Combinations of size 5 of (0,1,2,3,4,5)
Write down a python code to generate 3 sets of lottery tickets randomly from the pool of 300
tickets with an equal probability distribution, and keep in mind that if a set of the number already
selected in the first-month lottery, the same number is not allowed to repeat.
Right Triangle
Given a number N write a program to print a triangular pattern of N lines with the number as shown below
1
121
12321
1234321
Create a program with two methods, one method for displaying your full name and the
other method displays your address.
Requirements:
The menu is shown below:
1 – Balance Inquiry
2 – Withdraw
3 – Deposit
X – Exit
Score will be updated before encoded in BBL for the following:
Input
1. data
Output
Enter·pin:·123489
1·–·Balance·Inquiry
2·–·Withdraw
3·–·Deposit··
X·–·Exit
Enter·your·choice:··X
Thank·you·for·banking·with·us!
Pi-thon
by CodeChum Admin
Instructions:
Print out the symbol of Pi and its equivalent using placeholders. Remember the syntax used when using multiple placeholders in a print() function. Tip: to print out the Pi symbol, we need to make use of its Unicode equivalent. Just put '\u03C0' as a substitute of a character placeholder in your print function.
Make use of the float placeholder in your print() function to output the value of Pi. Take note, however, that we only wish to output one decimal of the entire value of Pi, so recall on how to limit the outputted decimals in your code.
The outputted statement must be the same as the one in the sample output shown above.
An initial source code with blanks is provided to you. Just fill out the blanks.
Output
A single line containing the sample output in the description.
π·=·3.1
Write a python program that asks the user to type 10 integers and write the number of occurrence of the biggest value
1.How do you specify values for the X-axis of a line chart in python?
2.How do you specify labels for the axes of a chart in python?
3.How do you plot multiple line charts on the same axes in python?