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

How many miles are there in 10 kilometers ? Hint: there are 1.61 kilometers in a mile


for i in range(N - 1, 0, -1):

for j in range(1, N - i + 1):

print(' ', end = '')

for l in range(1, 2 * i):

if l == 1 or l == i * 2 - 1:

print('*', end = '')

else:

print(' ', end = '')

print()

covert this program into simple program


Write a python program that will take the quiz, mid, lab and final marks from the user and calculate the grade.


Total_marks = quiz+mid+lab+final

Total_marksGradeFrom 90 to 100(inclusive)"Grade: A"From 80 to 89(inclusive)"Grade: B"From 70 to 79(inclusive)"Grade: C"From 60 to 69(inclusive)"Grade: D"From 50 to 59(inclusive)"Grade: F"Less than 0 or more than 100 (exclusive)"Invalid Input"


Sample Input:

Quiz marks = 18

Mid marks = 30

Lab marks = 20

Final marks = 26

Sample Output:

Grade: A


Write a python program that first asks the user how many numbers should be entered. Then the program will read that many numbers from the user, and print the numbers which are multiples of 5 or 7. For example, if user input is 5, your program should read 5 numbers and check if they are multiples of 5 or 7. You must use loops to solve this task.
Sample Input:
No. of Inputs = 5

   # Function: Display the Bitcoin price in the menu item – to assist the user when setting price levels

   def updateMenuPrice(self):

       # Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.

       tickObj = self.getBitMexPrice()

       # Update the currentPrice property with the Bitcoin price in tickObj.

       . . .

 

Describe at least three additional python experiments that you tried.show the python input and their output and explain what you learned from the results of each example


# Function: Display the Bitcoin price in the menu item – to assist the user when setting price levels

   def updateMenuPrice(self):

       # Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.

       tickObj = self.getBitMexPrice()

       # Update the currentPrice property with the Bitcoin price in tickObj.

...

replace ellipsis with applicable code

If you run a 10 kilometer race in 42 minutes 42 seconds , what is your average pace ( time per mile in minutes and seconds )? What is your average speed in miles per hour


Traingles

Given three sides of the triangle(a, b, c) as input. Write a program to determine whether the triangle is Equilateral, Isosceles or Scalene.

Input

The first line of input will contain an integer A.

The second line of input will contain an integer B.

The third line of input will contain an integer C.

Output

If the given sides A, B and C are equal, print "Equilateral".

In the given sides any of two sides are equal print "Isosceles".

If the given sides A, B, C are not equal to each other, print "Scalene".

Explanation

For example, if the given sides are 4, 4, 4 the output should be "Equilateral".

Similarly, if the given sides are 3, 2, 3 the output should be "Isosceles".



Hand game

Abhinav and Anjali are playing Rock-Paper-Scissors game. Rock-Paper-Scissors is a hand game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are "rock", "paper" and "scissors". Based on the shapes the player chooses the outcome of the game is determined. A rock beats scissors, scissors beat paper by cutting it, and paper beats rock by covering it. If the same shape is chosen by both of the players, then it is tie. Write a program to decide the winner of each round of the game based on the shapes the players chose.

Input

The first line of input will be one of the strings "Rock", "Paper", "Scissors", representing the shape chosen by Abhinav. The second line of input will be the sting representing the shape chosen by Anjali..



LATEST TUTORIALS
APPROVED BY CLIENTS