- Load iris data from load_iris function from sklearn.datasets package.
- From the dataset extract the data property.
- Train an AgglomerativeClustring model based on the data.
- Plot dendrogram to visualize the clustering linkage
0 0 1 0 0
0 1 1 1 0
1 1 1 1 1
can i get code for this please!
*
* *
* * *
* * * *
* * * * *
* *
* *
* *
*
can i get the exact code for this.
Create a Python script which will compute the TOTAL Sales in a Grapes Store. The grapes is sold at 235.75 per kilo. 5% discount is given to customers that will buy 5 kilos and above. Compute also the CHANGE after the customer tendered their money. Format the display with two decimal digits.
Sample Output 2:
GRAPE STORE
No. of Kilos: 3
Total Price: 707.25
Discount: 0.00
Discounted Price: 707.25
CASH: 1000
Change: 292.75
Create a Python script that will accept three integers and will check each input number. If the input number is EVEN it will display the square of cube of the number and if the number is ODD it will display the square of the number.
Sample Output
Number 1: 5
Number 2: 8
Number 3: 3 The square of 5 is 25
The cube of 8 is 512 The square of 3 is 9.
write a program that takes storage capacity in GB from user and convert it into MBs
If Satellite with a radius of 5.3m transmitted a message at the frequency of 1.3 MHz to earth station. Determine;
i. The wavelength, and time, in hour of the transmission
ii. The centrifugal force of the satellite
iii. The attenuation of the transmission
Write a program to take a string as input then display the words along with position of each character its below but don't take a white blank space as a separate character.
Example:
Enter a String
Hello World RUN
12345 67890 123
Write a program to take a String as input then display the words and each character's position its below.
Example:
Enter a String
Elephant are large
12345678 91011 1213141516
Create a class called Time that includes three instance variables: hour (int), minute (int) and second (int). Provide following constructors to initializes the three instance variables.
• No-argument constructor: Initializes each instance variable to zero.
• Constructor: hour supplied, minute and second defaulted to 0.
• Constructor: hour and minute supplied, second defaulted to 0.
• Constructor: hour, minute and second supplied.
• Constructor: Another Time2 object supplied.