Elements in the Range
Write a Python Program of Elements in the Range.It Consists of two test cases
The below link contains Elements in the Range - question, explanation and test cases
https://drive.google.com/file/d/1i2DhICQrl6o3mv6wKLycUvbuEvb4SulW/view?usp=sharing
We need all test cases can be come while code was run
First & Last Digits
Write a Python Program of First & Last Digits.It Consists of two test cases
The below link contains First & Last Digits - question, explanation and test cases
https://drive.google.com/file/d/1A0_vdqi4KJP9EPCdm-PoIP6qkkxPkB7i/view?usp=sharing
We need all test cases can be come while code was run
String Repetition - 4
This Program name is String Repetition - 4. Write a Python program is String Repetition - 4, it has two test cases
The below link contains String Repetition - 4 - question, explanation and test cases
https://drive.google.com/file/d/1n4TSeGRbdbrEgeIKfXO5bq_IF3CWQ0jY/view?usp=sharing
We need exact output when the code was run
Half String - 2
This Program name is Half String - 2. Write a Python program is Half String - 2, it has two test cases
The below link contains Half String - 2 - question, explanation and test cases
https://drive.google.com/file/d/1rl4EMVpnQcr9Kyt6WCER9qy9k1-d8COt/view?usp=sharing
We need exact output when the code was run
First Letters
This Program name is First Letters. Write a Python program is First Letters, it has two test cases
The below link contains First Letters - question, explanation and test cases
https://drive.google.com/file/d/1cXmIW56uurB83V4FNRuNw9VhJ7RcYU9j/view?usp=sharing
We need exact output when the code was run
Compare Last Three Characters
This Program name is Compare Last Three Characters. Write a Python program Compare Last Three Characters, it has two test cases
The below link contains Compare Last Three Characters - question, explanation and test cases
https://drive.google.com/file/d/1_oj4CCIYU5X0VuwscEnUwUGfWxN53Psq/view?usp=sharing
We need exact output when the code was run
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.
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 line containing the secret message. All characters in the output should be in lower case.
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".
Sample Input 1 :
python
Sample Output 1 :
16-25-20-8-15-14
Sample Input 2 :
Foundations
Sample Output 2 :
6-15-21-14-4-1-20-9-15-14-19
Print in Reverse Order - 2
This Program name is Print in Reverse Order - 2. Write a Python program to Print in Reverse Order - 2, it has two test cases
The below link contains Print in Reverse Order - 2 question, explanation and test cases
https://drive.google.com/file/d/1KGH3-kyqBUXXMhynX87y3TE8R7pnSGXc/view?usp=sharing
We need exact output when the code was run
Given a string, write a program to mirror the characters of the string in alphabetical order to create a secret message.
Note: Mirroring the characters in alphabetical order replacing the letters 'a' with 'z', 'b' with 'y', ... , 'z' with 'a'.
a b c d e f g h i j k l m n o p q r s t u v w x y z
z y x w v u t s r q p o n m l k j i h g f e d c b a
The input will be a string in the single line containing spaces and letters (both uppercase and lowercase).Output
All characters in the output should be in lower case.
Explanation
if the given input is "python", "p" should replaced with "k", similarly "y" with "b", "t" with "g", "h" with "s", "o" with "l", "n" with "m". So the output should be "kbgslm".
Sample Input 1:
python
Sample Output 1 :
kbgslm
Input 2 :
Foundations
Output 2 :
ulfmwzgrlmh
Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input
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.Output
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 15By ordering all the elements of the matrix in increasing order, the ordered matrix should be
1 2 3
5 10 11
15 20 30Sample Input 1 :
3 3
1 20 3
30 10 2
5 11 15
Sample Output 1 :
1 2 3
5 10 11
15 20 30
Sample Input 2 :
2 5
-50 20 3 25 -20
88 17 38 72 -10
Sample Output 2 :
-50 -20 -10 3 17
20 25 38 72 88