Questions: 5 831

Answers by our Experts: 5 728

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 & Filtering

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


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.


Input

The first line of input is a string.

Output

The output should be

True or False.Explanation

In the given example, the string

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


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


You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.

Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.

Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.

Formula to convert from Kelvin K to Celsius C is C = K - 273.

Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.

The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.

The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.


Given an integer number

N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.Note: There is a space after each asterisk (*) character.


Smallest Among 3 Numbers

Write a Python Program of Smallest Among 3 Numbers.It Consists of two test cases


The below link contains Smallest Among 3 Numbers - question, explanation and test cases


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


We need all test cases can be come while code was run

LATEST TUTORIALS
APPROVED BY CLIENTS