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

1.  Flip the number: Write a program that prompts the user to enter a three digits positive integer. The program flips and prints the integer. For example, if the user enters 582 then the program prints 285.


simple output:

  1. Enter a 3-digits positive integer: 371 The flipped value of 371 is 173.
  2. Enter a 3-digits positive integer: 690 The flipped value of 690 is 96.

Armstrong numbers between two intervals

Write a program to print all the Armstrong numbers in the given range

A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digits.Input

The first line has an integer

A. The second line has an integer B.Output

Print all Armstrong numbers separated by a space.

If there are no Armstrong numbers in the given range, print

-1.Explanation

For

A = 150 and B = 200For example, if we take number 153, the sum of the cube of digits

1, 5, 3 is 13 + 53 + 33 = 153.

So, the output should be

153.

Sample Input 1

150

200

Sample Output 1

153

Sample Input 2

1

3

Sample Output 2

1 2 3





Remove Vowels in a Sentence

You are given a sentence. Write a program to remove all the vowels in the given sentence. 

Note: Sentence has both lowercase and uppercase letters.

Input

The first line of input is a string 

N.

Explanation

In the example given a sentence 

Hello World, the sentence contains vowels e, o.

So, the output should be 

Hll Wrld.

Sample Input 1
Hello World
Sample Output 1
Hll Wrld
Sample Input 2
Once upon a time
Sample Output 2
nc pn  tm
Python 3.9
RESET
SAVE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
string = input()
if string == 'x':
    exit();
else:
    newstr = string;
   
    vowels = ('a', 'e', 'i', 'o', 'u');
    for x in string.lower():
        if x in vowels:
            newstr = newstr.replace(x,"");
    
    print(newstr);
     
     
         
                
        
Custom Input
RUN CODE
SUBMIT
TEST CASE 1
TEST CASE 2
Input
1
Once upon a time
Diff
Your Output
Onc pn  tm

Expected
nc pn  tm




Given X="ABCDEFGHIJKLMNOPQRSTUVWXYZ", X[8:16:2] is?



a) IKMO


b) IKMOQ


c) HJLNP


d) Error


Rearrange numbers in the string

example

hi im 98 and -12 also

output= hi im -12 and 98 also


Given day number D as input, write a program to display the day name


Write a program to find the hypotenuse H of a right-angled triangle of sides A and B.

output : 13

5

it should be : 5

output : 12

5

it should be 13.


write a python program to shuffle letters of words evenly first time and oddly second time except the first and last character when we run it again and again. it should have the capability to handle files too. own random function using time

input:

If you can’t find homework answers by yourself, turn to our experts to get professional response in any academic field. Even being good at all subjects, you may also be trapped for hours with one of those tricky questions.



1.  A real number with only one decimal place is entered. Write a program that reverses it. For example, if the input is 5.7, the answer should be 7.5.


1. Heartbeat: Write a program that prompts for a person’s age in years and heartbeats rate per minute. The program computes and outputs the number of heartbeats since the person was born. You may assume that there are 365 days in a year.


output/input:

  • Enter the age in years and heart rate: 23 56
  • The number of heartbeats since the person was born is 676972800
LATEST TUTORIALS
APPROVED BY CLIENTS