Python Answers

Questions answered by Experts: 5 288

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Compute Hypotenuse

Write a Python program of Compute Hypotenuse. It consists of two test cases


The below link contains Compute Hypotenuse - Question, explanation and test cases


https://drive.google.com/file/d/1DsHiww7KUZhE-FrD_NxDBreZUlkhCmBL/view?usp=sharing


We need all test caese can be come while code was running

Uncommon Number

Write a Python program of Uncommon Number. It consists of two test cases


The below link contains Uncommon Number - Question, explanation and test cases


https://drive.google.com/file/d/1jkxCFS8UyRSlxvHFJ95HO_0Tq5JTf5nY/view?usp=sharing


We need all test caese can be come while code was running

Smallest Remainder

Write a Python program of Smallest Remainder. It consists of two test cases


The below link contains Smallest Remainder - Question, explanation and test cases

https://drive.google.com/file/d/1nP_gPJ_yy1nsY6YCwlISiZRSoyA5E2Vx/view?usp=sharing



We need all test caese can be come while code was running

Calculate Double or Triple

Write a Python program of Calculate Double or Triple. It consists of two test cases


The below link contains Calculate Double or Triple - Question, explanation and test cases


https://drive.google.com/file/d/1KhGDfF3F_z2lSwKOmcNZYqBCEW67WXm8/view?usp=sharing


We need all test caese can be come while code was running

Given an integer N as input, write a program to print a number diamond of 2*N -1 rows as shown below.


Write python program
To print sum of non primes In the given N numbers.the numbers which are not primes considered as non primes in nested loops topic..
The first line of input will contain
positive integer (N).
The following N lines will contain an integer in each line.

You are given a string, write a program to find whether the string is palindrome or not.

Note: Treat uppercase letters and lowercase letters as same when comparing letters. Ignore spaces and quotes within the string.

In the given example, the string No lemon no melon is a palindrome as we are ignoring spaces. So, the output should be True.


God's Dog and the output should be True

Was it a cat I saw? so the output should be False




Question #168149

For each Query operation print the element present at row index K and column index L of the matrix in its current state.

For Input:

2

5 6

7 8

R 90

Q 0 1

R 270

Q 1 1

R 180

U 0 0 4

Q 0 0

-1


Here , you are providing the expert code. But, the code passed only 3/7 test cases. Whenever i tried with above input i will get 5 8 5.But, actual output is 5 8 8.


Composite Number

Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.


Input

The first line of input is an integer N.


Output

The output should be True or False.


Explanation

In the given example, 12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.


Therefore, the output should be True.


in the given example 12345678911 and the output should be True



Composite Number

Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.


Input

The first line of input is an integer N.


Output

The output should be True or False.


Explanation

In the given example, 12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.


Therefore, the output should be True.


in the given example 12345678911 and the output should be True


LATEST TUTORIALS
APPROVED BY CLIENTS