Solution :
x = float_(input())
y = float_(input())
z = float_(input())
res1 = x**z
res2 = x**(y**z)
res3 = abs(x-y)
res4 = (x**z)**0.5
print('{:.2f} {:.2f} {:.2f} {:.2f}'.format(res1,res2,res3,res4))
Output is :
5.0
1.5
3.2
172.47 361.66 3.50 13.13
1. go back to the feedback you submitted
2.Locate the order, and then click remove
3.select a reason for the removal and click to remove the feedback button.
(But why would you write a rude comment in the first place to begin with?)
#1 is A and #2 is B, but I don't know about #3 and #4.
Answer:
import sys
import turtle
import random
def n_pointed_star(total_points):
if total_points <= 4:
raise ValueError('Not enough total_points')
area = 150
for coprime in range(total_points//2, 1, -1):
if greatest_common_divisor(total_points, coprime) == 1:
start = turtle.position()
for _ in range(total_points):
turtle.forward(area)
turtle.left(360.0 / total_points * coprime)
turtle.setposition(start)
return
def greatest_common_divisor(a, b):
while b != 0:
a, b = b, a % b
return a
turtle.reset()
n_pointed_star(5)
Explanation:
- Inside the n_pointed_star function, check whether the total no. of points are less than or equal to 4 and then throw an exception.
- Loop through the total_points variable and check whether the result from greatest_common_divisor is equal to 1 or not and then set the starting position of turtle and move it.
- Create the greatest_common_divisor which takes two parameters a and b to find the GCD.
- Finally reset the turtle and call the n_pointed_star function.
Answer:
c. Surgeons who have done a lot of video gaming do better at the Top Gun program.
Explanation:
Video gaming is digital entertainment system that mimics real life or fiction action and sport events, controlled digitally by a user or player.
It gaming experience can be brain teasing and procedural. An individual with a prior knowledge of one game, can easily adapt to another and play better as long as the controls has being mastered. A surgeon with no prior knowledge in video gaming, would find it hard to play and would take a reasonable period of time to learn the game.