in the example the first test case number is 9966777819 and this number should be divided into 4 3 3 format
the first divided part should be read a double nine double six. As there are two consecutive 9's,it should be read as double nine.similarly there are two consecutive 6's it should be read as double six
in the second divided part there are three consecutive 7's it should be read as triple seven.
In the third divided part there are no consecutive digits each digit should be read separately.
sample input1
9966777819
sample output1
double nine double six triple seven eight one nine
sample input 2
7299613014
sample output 2
seven two double nine six one three zero one four
You are given a string containing ten digits, write a program to print these digits in a human readable format.
There are some rules to how to read a number,
• use the following prefixes for consecutive digits
# Single numbers just read them seperately
# if two successive numbers use double
# if three successive numbers use triple
# if four successive numbers use quadruple
Given an integer N as input, write a program to print a number diamond of 2*N -1 rows.
The number of rows in the diamond is 5.
So the output should be.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
Write a PYTHON script
Store https://www.genecards.org/cgi-bin/cardlisttxt.pl it in a flat file.
The GeneCards database currently contains 270,168 GeneCards
Parse the first 10 genes from each series (1A9N_Q-ZZZ3) https://www.genecards.org/cgi-bin/carddisp.pl?gene=GENE NAME
If the genes are less than 10 then parse all.
Extract Genomic Locations for GENE NAME and store it in a file for each gene you parse.For example
Open https://www.genecards.org/cgi-bin/carddisp.pl?gene=A1BG
Do scraping for “Genomic Locations for A1BG Gene”, you will see
Genomic Locations for A1BG Gene
chr19:58,345,178-58,353,492(GRCh38/hg38)
Size:8,315 bases
Orientation:Minus strand
Store the scrapped output into a file and rendered it in HTML as it looks in genecard
Write a PYTHON program
Common header of the csv would be
ID, Diagnosis Age,Sex,Ethnicity Category,Histology,Adjuvant Treatment,ECOG Performance Status,Smoking History,Person Cigarette Smoking History Pack Year Value,Relapse Free Status,Relapse Free Status (Months),Ubiquitous Assay Panel,Percent Necrosis,Tumor Volume (cm3),Tumar Stage
JSON format sample
Sample output in HTML
Have a global search to filter any columns/rows.
Note: Use BootStrap, JQUERY Data table and CSS to beautify the output.
Write a python program to achieve Advanced Encryption Standard 128 bit key length encoding and decoding of text.
Program should be algorithm based rather than using any library function. Write both ENCODING and DECODING.
It should have the ability to encode even a FILE.
Input text
“To be, or not to be, that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take arms against a sea of troubles
And by opposing end them. To die—to sleep,
Expected Encoded:
O426pZT/JplIF8kyaiz3BDnCS5gfsMqAQS3P4ddM6ymaAlpSJBd8BNkZMJwux18ScbGM/HQn8RGNb/5hS4x81tMZ4QGerqPt3eI+qx/JJGSXM234gWesQsdJp66AoNLUCxDqXSU2IgR58rQ65kavEv/WknnN9pFir9D8pMqMO+y5xlfckTKZzBtWfJfkmz2HN2aS5UJVfzHFoXH8nVHL9tj+qX7+hAS5bi7u+PFBWQk26O8gy5eYPYQ+HZqo6TUmc3Jrf6CqNsx+ljfg/JIAjs17058hM8wl19gdRSW9/CNkYM/00aTK9vMpjC2BSraUMDyIezefqv5JYTHpFpEa+k1peN0FxrJCvLtiMmYxlM0sjNrACU1mZu+
Given an integer value N as input, write a program to print a shaded diamond 2*N -1 rows using an asterisk ( * ).
Note: There is a space after each asterisk ( * ) character.
Example N = 5. There for the output should be:
*
* *
* * *
* * * *
* * * * *
* *
* *
* *
*
Input
Five lines containing a string on each.
C
C#
Java
Python
Javascript
Output
A single line containing all the strings separated by a comma and a space.
C,·C#,·Java,·Python,·Javascript
you are given a string s . write a program to replace each letter of the string with the next letter that comes in the English alphabet.
Secret Message - 2
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.
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Input
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".
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