Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame.
write a profram to convert the date in string fromat to another string format.
the input date string format is like "jul 01 2014 02:43PM"
the output date string format should be like "DD/MM/YYYY HH:MM:SS"
write a prgram to print columns in rows without space in python?
1st input:
3
Not you kid
They are got
Like great
output
NotTheyLike
youaregreat
kidgot
2nd input
4
hy hy
by
hy hy hy
by by hy by hy
output:
hybyhyby
hyhyby
hyhy
byhy
Unique Matrix
You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N
Input:
The first line contains an integer N.
The next N lines contains N space separated values of the matrix.
Output:
The output contains a single line and should be True if the matrix is unique matrix and False otherwise.
Sample Input1
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
Sample Output1
True
Sample Input2
4
1 2 3 3
2 3 4 1
3 4 1 2
4 1 2 3
Sample Output2
False
by CodeChum Admin
Looping a number and taking away each digit of it is so much fun, but I wanted to try out a much more complex task: getting the largest digit among them all.
Think you can handle the job?
Instructions:
Write a program to print the following,
Input
The first line of input contains a string S.
The second line of input contains a string T.
Sample Input1
abc
acb
Sample Output1
Yes
Sample Input2
aabb
bbaa
Sample Output2
No
write a program to generate a sequence and print the corresponding value of a key for the given string a key.
Input
A,AA,AB,AAA
OUTPUT
1,27,53,703
Unique Matrix
You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N
Input
The first line contains an integer N.
The next N lines contains N space separated values of the matrix.
Output:
The output contains a single line and should be True if the matrix is unique matrix and False otherwise.
Sample input:
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
Sample output:
True
Sample Input2
4
1 2 3 3
2 3 4 1
3 4 1 2
4 1 2 3
Sample Output
False
Given an dictionary with key as person name,value as salary.write a program to find person with minimum salary.print person name aloo with salary.
input:
{sairam:1000,jack:2000,
sa i r am:200,raina:2500}
Output:
sairam ,1200
Input:
{jack:100,roy:500,j ack:300}
Output
Jack , 400
Unique Matrix
You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N
Input
The first line contains an integer N.
The next N lines contains N space separated values of the matrix.
Output:
The output contains a single line and should be True if the matrix is unique matrix and False otherwise.
Sample input:
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
Sample output:
True
Sample Input2
4
1 2 3 3
2 3 4 1
3 4 1 2
4 1 2 3
Sample Output
False