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

Half String - 2

Write a program that prints the second half of the given input string.
You can assume that the length of the input string will always be an even number.

Input

The first line of input is a string.

Output

The output should be a string.

Explanation

In the given string 

messages, the length of the string is 8. The last 4 characters i.e The second half of the string is ages.

So the output should be 

ages.

Sample Input 1
messages
Sample Output 1
ages
Sample Input 2
time
Sample Output 2
me

3-digit Armstrong Number

Write a program to check if a given 3-digit number

X is an Armstrong number or not.Note: A number is an Armstrong number if the number is equal to the sum of the Nth power of its digits.Input

The first line is an integer

X.Output

The output should be a single line containing

True if it satisfies the given conditions, False in all other cases.Explanation

In the given example

X = 371, The number of digits in 371 is 3. So, 33 + 73 + 13 = 371. Hence,

371 is an Armstrong number.So, the output should be

True.

Sample Input 1

371

Sample Output 1

True




Hollow Rectangle - 2


This Program name is Hollow Rectangle - 2. Write a Python program to Hollow Rectangle - 2


The below link contains Hollow Rectangle - 2 question, explanation and test cases


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


We need exact output when the code was run

Striped Rectangle


This Program name is Striped Rectangle. Write a Python program to Striped Rectangle


The below link contains Striped Rectangle question, explanation and test cases


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


We need exact output when the code was run

Composite Number


This Program name is Composite Number. Write a Python program to Composite Number


The below link contains Composite Number question, explanation and test cases


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


We need exact output when the code was run

Sum of Odd Numbers


This Program name is Sum of Odd Numbers. Write a Python program to Sum of Odd Numbers


The below link contains Sum of Odd Numbers question, explanation and test cases


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


We need exact output when the code was run

Sum of Even numbers


This Program name is Sum of Even numbers. Write a Python program to Sum of Even numbers


The below link contains Sum of Even numbers question, explanation and test cases


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


We need exact output when the code was run

Letter, Digit or Special Character


This Program name is Letter, Digit or Special Character. Write a Python program to Letter, Digit or Special Character, it has two test cases


The below link contains Letter, Digit or Special Character question, explanation and test cases


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


We need exact output when the code was run

Remove Vowels in a Sentence


This Program name is Remove Vowels in a Sentence. Write a Python program to Remove Vowels in a Sentence


The below link contains Remove Vowels in a Sentence question, explanation and test cases


https://drive.google.com/file/d/12FtBgqjIiaxVMyWPwI4Ys141HkUJJnpC/view?usp=sharing


We need exact output when the code was run

Palindrome - 3


This Program name is Palindrome - 2. Write a Python program to Palindrome - 3


The below link contains Palindrome - 3 question, explanation and test cases


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


We need exact output when the code was run

LATEST TUTORIALS
APPROVED BY CLIENTS