Denominations - 2
Write a Python program of Denominations - 2. It consists of two test cases
The below link contains Denominations - 2 - Question, explanation and test cases
https://drive.google.com/file/d/1DDPxBvRR7xx5Mbm68ThgRUe0h6QoOrQB/view?usp=sharing
We need all test caese can be come while code was running
Given a string, write a program to print a secret message that replaces characters with numbers 'a' with 1, 'b' with 2, ..., 'z' with 26 where characters are separated by '-'.
Note: You need to replace both uppercase and lowercase characters. You can ignore replacing all characters that are not letters.
abcdefghij12345678910
klmnopqr1112131415161718
stuvwxyz1920212223242526Input
The input will be a string in the single line containing spaces and letters (both uppercase and lowercase).Output
The output should be a single lline.
Explanation
For example, if the given input is "python", "p" should replaced with "16", similarly"y" with "25","t" with "20","h" with "8","o" with "15","n" with "14". So the output should be "16-25-20-8-15-14".
Input is python learning
Output should be 16-25-20-8-15-14 12-5-1-18-14-9-14-7
IPL Match Details
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the teams based on the outcome of the match.
A win earns a team 3 points. A draw earns 1. A loss earns 0.
The following information is expected:
MP: Matches Played
W: Matches Won
D: Matches Drawn (Tied)
L: Matches Lost
P: Points
The team information should be displayed in descending order of points.Input
Names of teams may contain spaces but will be less than 24 characters
100 >= N >= 0
Sample Input1
6
CSK;RR;loss
RR;DD;draw
MI;KKR;win
KKR;RR;loss
CSK;DD;draw
MI;DD;draw
Sample Output 1
Team: RR, Matches Played: 3, Won: 2, Lost: 0, Draw: 1, Points: 7
Team: MI, Matches Played: 2, Won: 1, Lost: 0, Draw: 1, Points: 4
Team: DD, Matches Played: 3, Won: 0, Lost: 0, Draw: 3, Points: 3
Team: CSK, Matches Played: 2, Won: 0, Lost: 1, Draw: 1, Points: 1
Team: KKR, Matches Played: 2, Won: 0, Lost: 2, Draw: 0, Points: 0
Sample input 2
Sample output 2
No output
Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.
The first line of input will contain two space-separated integers, denoting the M and N.
The next M following lines will contain N space-separated integers, denoting the elements of each list.
The output should be M lines containing the ordered matrix.
Note: There is a space at the end of each line.Explanation
For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.
1 20 3
30 10 2
5 11 15
By ordering all the elements of the matrix in increasing order, the ordered matrix should be
1 2 3
5 10 11
15 20 30
Output should be in matrix form
Digit 9
You are given
The first line of input is an integer
In the given example,
N = 4.So, the output should be
* * * *
* *
* *
* * * *
*
*
* * * *
Sample Input 1
4
Sample Output 1
* * * *
* *
* *
* * * *
*
*
* * * *
Weather condition
This Program name is Weather condition. Write a Python program to Weather condition, it has two test cases
The below link contains Weather condition question, explanation and test cases
https://drive.google.com/file/d/1scnLsEZFIGuWVs7r50zUIoPOl0UWzOJ0/view?usp=sharing
We need exact output when the code was run
Leap Year
This Program name is Leap Year. Write a Python program to Leap Year, it has two test cases
The below link contains Leap Year question, explanation and test cases
https://drive.google.com/file/d/1OxFAPhxSfay0CussSEZ_OmW78GAHhOvk/view?usp=sharing
We need exact output when the code was run
Profit or Loss
This Program name is Profit or Loss. Write a Python program to Profit or Loss, it has two test cases
The below link contains Profit or Loss question, explanation and test cases
https://drive.google.com/file/d/1D4lHuphIlZv7hGzq0mY8Y0-p892RyZFW/view?usp=sharing
We need exact output when the code was run
Relation between two numbers 2
This Program name is Relation between two numbers 2. Write a Python program to Relation between two numbers 2, it has two test cases
The below link contains Relation between two numbers 2 question, explanation and test cases
https://drive.google.com/file/d/1KhAb8euuuqtqoHSP0zqRb9Mojcj-iAx_/view?usp=sharing
We need exact output when the code was run