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

Sum or Product

Write a Python Program of Sum or Product.It Consists of two test cases



The below link contains Sum or Product - question, explanation and test cases



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



We need all test cases can be come while code was run
Relation b/w Numbers

Write a Python Program of Relation b/w Numbers.It Consists of two test cases



The below link contains Relation b/w Numbers - question, explanation and test cases



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



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

Increment the number

Write a Python Program of Increment the number.It Consists of two test cases


The below link contains Increment the number - question, explanation and test cases


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


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

Positive or Negative

Write a Python Program of Positive or Negative.It Consists of two test cases


The below link contains Positive or Negative - question, explanation and test cases


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


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

Honor Student

Write a Python Program of Honor Student.It Consists of two test cases


The below link contains Honor Student - question, explanation and test cases


https://drive.google.com/file/d/1lCSgG3og00-_lqFMIQK8hixazR-4InrJ/view?usp=sharing


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

n the given example, N = 3 and the input integers are 2, 3, and 7.So, the output should be 2 x 3 x 7 = 42.


Given an integer number N as input. Write a program to print the right-angled triangular pattern of N rows as shown below.

Input

The first line of input is a positive integer.

Explanation

For example, if the given number is

5, the output should be

______
|    /
|   /
|  /
| /
|/

7,the out put should be

________
|      /
|     /
|    /
|   /
|  /
| /
|/




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.

In the given example the hollow right angled triangle of side

4. Therefore, the output should be   

      *
    * *
  *   *
* * * *

5.Therefore, the output should be

        *
      * *
    *   *
  *     *
* * * * *

Sum of K powers

Write a program to print the sum of the

Kth power of the first N natural numbers.Input

The first line of input is an integer

N. The second line of input is an integer K.Explanation

In the given example, the sum of first

5 natural numbers power of 3.The sum should be 13 + 23 + 33 + 43 + 53

Therefore, the output should be

225.


Product of the Given Numbers

Given an integer

N, write a program which reads N inputs and prints the product of the given input integers.Input

The first line of input is a positive integer,

N. The next N lines each contain an integer.Output

The output should be the product of the given input integers.

Explanation

In the given example,

N = 3 and the input integers are 2, 3, and 7.So, the output should be 2 x 3 x 7 = 42


LATEST TUTORIALS
APPROVED BY CLIENTS